mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-22 02:32:23 +00:00
Don't make a nested json object payload (#1815)
This commit is contained in:
@@ -279,7 +279,7 @@ String MQTT::downstreamPacketToJson(MeshPacket *mp)
|
|||||||
// if it isn't, then we need to create a json object
|
// if it isn't, then we need to create a json object
|
||||||
// with the string as the value
|
// with the string as the value
|
||||||
DEBUG_MSG("text message payload is of type plaintext\n");
|
DEBUG_MSG("text message payload is of type plaintext\n");
|
||||||
msgPayload = Json::object({{"text", payloadStr}});
|
msgPayload = Json::object{{"text", payloadStr}};
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user