Don't make a nested json object payload (#1815)

This commit is contained in:
Ben Meadors 2022-10-17 09:09:28 -05:00 committed by GitHub
parent e65d9e8ccd
commit f10d04591d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}