iot_water_monitor_v2
Dependencies: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Diff: Simple-MQTT/SimpleMQTT.h
- Revision:
- 40:4356c209c58d
- Parent:
- 39:a5ee98bd0050
- Child:
- 43:dcde0e66874a
--- a/Simple-MQTT/SimpleMQTT.h Wed Feb 21 03:41:23 2018 +0000 +++ b/Simple-MQTT/SimpleMQTT.h Tue Feb 27 14:51:18 2018 +0000 @@ -388,7 +388,7 @@ } strftime(timeBuf, 50, "%Y/%m/%d %H:%M:%S", localtime(&inputTime)); - sprintf(buf, "{\"type\":2,\"deviceId\":\"PROEVN\",\"time\":\"%s\",\"cmdId\":%d,\"DO\":%.2f}", + sprintf(buf, "{\"type\":2,\"deviceId\":\"PROEVN\",\"time\":\"%s\",\"cmdId\":%d,\"DO(ppm)\":%.2f}", timeBuf, commandID, DOVal); message.qos = MQTT::QOS0; message.retained = false;