Update the MQTT and JSON handling slightly.

This commit is contained in:
Jonathan Naylor
2023-07-04 17:08:11 +01:00
parent 893952f024
commit fddabee1b9
3 changed files with 22 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ void WriteJSON(const std::string& topLevel, nlohmann::json& json)
top[topLevel] = json;
m_mqtt->publish("json", top.dump().c_str());
m_mqtt->publish("json", top.dump());
}
}