How to get Battery Status in transmission via LoRa #836
-
I am attempting to send the battery status along via lora. I assume it is an easy one. In the readme I read the following: Output of sensor and peripheral data is internally switched by a bitmask register. Default mask can be tailored by editing cfg.payloadmask initialization value in configmanager.cpp following this scheme: Bit Sensordata Default (I have changed GPSPORT 1 in paxcounter.conf to enable). I assume that I have to change something in the lines 9 to 13 in configmanager.cpp: I just can't figure out how to achieve this. Can anybode point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You don't need to change the code for this. 0x21 is optional. It makes this new setting permanent, by saving in NVRAM. If you do not want this, omit it. If you need to change the factory defaults in code, this would be
Note: before reflashing the new build, you need to clear NVRAM. Otherwise the device will pick the previous settings from NVRAM during reboot.
|
Beta Was this translation helpful? Give feedback.
-
yes, single & |
Beta Was this translation helpful? Give feedback.
yes, single &