meshtastic-mqtt
meshtastic-mqtt copied to clipboard
Add Telemetry (Sensors) to possible packets to decode
There is a spot within the meshtastic that allows an external Voltage/Current monitor (amongst other tings), specifically the INA219. Need code to mimic the ENVIRONMENT_MEASUREMENT_APP decode
Hey, have you tried the json functions of the device firmware? You can get a decoded and usable json formatted message straight from the device on mqtt without needing to decode it with a script like this.
So I enabled the json on the Meshtastic device. Looking at the data from mosquito I am not seeing any difference in the telemetry stream. Do I need to run that telemetry stream thru the json.dump within meshtastic-mqtt software, or am I missing something?
Also, on the environmental_measurement_pb2.py there are several problems.
- The temp is show 9.3e+21, which I am guessing is wrong. Where are the documents that shows the serialized packet structure?
- They have added voltage, current and gas_resistance to the packet. Again, where can I find the packet structure so that I can edit the pb2 file?