mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-10 23:22:05 +00:00
Update MQTT.cpp
This commit is contained in:
parent
c97831963b
commit
18ccb38824
@ -42,7 +42,6 @@ void MQTT::onPublish(char *topic, byte *payload, unsigned int length)
|
||||
if (json.object_items().count("sender") != 0 && json.object_items().count("payload") != 0 && json["type"] == "sendtext") {
|
||||
// this is a valid envelope
|
||||
if (json["sender"].string_value().compare(owner.id) != 0) {
|
||||
json["type"] = "text";
|
||||
std::string jsonPayloadStr = json["payload"].dump();
|
||||
DEBUG_MSG("JSON payload %s, length %u\n", jsonPayloadStr.c_str(), jsonPayloadStr.length());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user