From f10d04591d74c1cb5ab380535ce39e9cab929985 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Mon, 17 Oct 2022 09:09:28 -0500 Subject: [PATCH] Don't make a nested json object payload (#1815) --- src/mqtt/MQTT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt/MQTT.cpp b/src/mqtt/MQTT.cpp index 7087c58c8..020f2dbb4 100644 --- a/src/mqtt/MQTT.cpp +++ b/src/mqtt/MQTT.cpp @@ -279,7 +279,7 @@ String MQTT::downstreamPacketToJson(MeshPacket *mp) // if it isn't, then we need to create a json object // with the string as the value DEBUG_MSG("text message payload is of type plaintext\n"); - msgPayload = Json::object({{"text", payloadStr}}); + msgPayload = Json::object{{"text", payloadStr}}; } break; }