minify json a bit more

This commit is contained in:
Starbeamrainbowlabs 2021-12-04 02:59:02 +00:00
parent 2781b27961
commit da26e47056
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -70,7 +70,7 @@ bool send_mqtt(String id, String sensor, float value) {
// data["sensor"] = sensor;
// data["value"] = value;
String payload = "{\"id\": \""+id+"\", \"sensor\": \""+sensor+"\", \"value\": "+String(value)+"}";
String payload = "{\"id\": \""+id+"\",\"sensor\": \""+sensor+"\",\"value\": "+String(value)+"}";
// int length = measureJson(&data);
// char* payload = new char[length]();
// serializeJson(data, payload, length);