Closed sachaw closed 3 years ago
Ooh yes. Those should definitely be serialized as ints, not strs. Good find.
hmm - where did this json come from? the web server inside the device or the python api?
@geeksville Seems to be an issue in protobufjs which is used by both protoman and meshtastic.js
No longer using protobufjs
I originally discovered an occasional type mismatch in received protobufs when working on the meshtastic.js library, and found that enums are sent as there property name as against there index, i.e.
"modemConfig": "Bw125Cr48Sf4096"
vs"modemConfig": 3
This has two issues, firstly messages are much larger than they need to be, secondly, some protobuf libraries aren't smart enough to automatically handle these inconsistencies.