mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-14 00:52:05 +00:00
Add precision_bit sto json
This commit is contained in:
parent
7167f1e04f
commit
dced888492
@ -655,6 +655,9 @@ std::string MQTT::meshPacketToJson(meshtastic_MeshPacket *mp)
|
|||||||
if ((int)decoded->VDOP) {
|
if ((int)decoded->VDOP) {
|
||||||
msgPayload["VDOP"] = new JSONValue((int)decoded->VDOP);
|
msgPayload["VDOP"] = new JSONValue((int)decoded->VDOP);
|
||||||
}
|
}
|
||||||
|
if ((int)decoded->precision_bits) {
|
||||||
|
msgPayload["precision_bits"] = new JSONValue((int)decoded->precision_bits);
|
||||||
|
}
|
||||||
jsonObj["payload"] = new JSONValue(msgPayload);
|
jsonObj["payload"] = new JSONValue(msgPayload);
|
||||||
} else {
|
} else {
|
||||||
LOG_ERROR("Error decoding protobuf for position message!\n");
|
LOG_ERROR("Error decoding protobuf for position message!\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user