mirror of https://github.com/arendst/Tasmota.git
Merge pull request #6157 from s-hadinger/issue_6155
Add MqttCount metric to STATE (#6155)
This commit is contained in:
commit
e4b1f98e13
|
@ -4,6 +4,7 @@
|
|||
* Upgrade library IRRemoteEsp8266 to 2.6.4, now using sendPioneer()
|
||||
* Add support for MAX31865 Thermocouple sensor by Alberto Lopez Siemens
|
||||
* Add option 0 to Width1 (Marker), Width2 (Second), Width3 (Minute) and Width4 (Hour) disabling display (#6152)
|
||||
* Add MqttCount metric to STATE (#6155)
|
||||
*
|
||||
* 6.6.0.2 20190714
|
||||
* Change commands Var and Mem to show all parameters when no index is given (#6107)
|
||||
|
|
|
@ -629,8 +629,8 @@ void MqttShowState(void)
|
|||
ResponseAppend_P(PSTR(",\"" D_JSON_VCC "\":%s"), stemp1);
|
||||
#endif
|
||||
|
||||
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);
|
||||
ResponseAppend_P(PSTR(",\"" D_JSON_HEAPSIZE "\":%d,\"SleepMode\":\"%s\",\"Sleep\":%u,\"LoadAvg\":%u,\"MqttCount\":%u"),
|
||||
ESP.getFreeHeap()/1024, GetTextIndexed(stemp1, sizeof(stemp1), Settings.flag3.sleep_normal, kSleepMode), sleep, loop_load_avg, MqttConnectCount());
|
||||
|
||||
for (uint32_t i = 0; i < devices_present; i++) {
|
||||
#ifdef USE_LIGHT
|
||||
|
|
Loading…
Reference in New Issue