Add precision_bit sto json

pull/3363/head
Jonathan Bennett 2024-03-09 13:40:03 -06:00
rodzic 7167f1e04f
commit dced888492
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -655,6 +655,9 @@ std::string MQTT::meshPacketToJson(meshtastic_MeshPacket *mp)
if ((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);
} else {
LOG_ERROR("Error decoding protobuf for position message!\n");