minify json a bit more
This commit is contained in:
parent
2781b27961
commit
da26e47056
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ bool send_mqtt(String id, String sensor, float value) {
|
||||||
// data["sensor"] = sensor;
|
// data["sensor"] = sensor;
|
||||||
// data["value"] = value;
|
// 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);
|
// int length = measureJson(&data);
|
||||||
// char* payload = new char[length]();
|
// char* payload = new char[length]();
|
||||||
// serializeJson(data, payload, length);
|
// serializeJson(data, payload, length);
|
||||||
|
|
Loading…
Reference in a new issue