meshtastic-mqtt icon indicating copy to clipboard operation
meshtastic-mqtt copied to clipboard

Add Telemetry (Sensors) to possible packets to decode

Open herbsims opened this issue 2 years ago • 2 comments

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

herbsims avatar Mar 01 '23 16:03 herbsims

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.

joshpirihi avatar Mar 01 '23 17:03 joshpirihi

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.

  1. The temp is show 9.3e+21, which I am guessing is wrong. Where are the documents that shows the serialized packet structure?
  2. 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?

herbsims avatar Mar 02 '23 10:03 herbsims