Add Heap info to state message

Add Heap info to state message
This commit is contained in:
Theo Arends 2019-07-01 15:30:40 +02:00
parent d66a3e8450
commit 9268976ff1

View File

@ -1939,8 +1939,8 @@ void MqttShowState(void)
ResponseAppend_P(PSTR(",\"" D_JSON_VCC "\":%s"), stemp1);
#endif
ResponseAppend_P(PSTR(",\"SleepMode\":\"%s\",\"Sleep\":%u,\"LoadAvg\":%u"),
GetTextIndexed(stemp1, sizeof(stemp1), Settings.flag3.sleep_normal, kSleepMode), sleep, loop_load_avg);
ResponseAppend_P(PSTR(",\"" D_JSON_HEAPSIZE "\":%d,\"SleepMode\":\"%s\",\"Sleep\":%u,\"LoadAvg\":%u"),
ESP.getFreeHeap()/1024, GetTextIndexed(stemp1, sizeof(stemp1), Settings.flag3.sleep_normal, kSleepMode), sleep, loop_load_avg);
for (uint32_t i = 0; i < devices_present; i++) {
#ifdef USE_LIGHT