update
This commit is contained in:
parent
84cfc90b5d
commit
865291842f
@ -2814,6 +2814,7 @@ void CRYDevice::heart_beat(int status)
|
||||
#endif
|
||||
jsonValue["linkId"] = linkId;
|
||||
jsonValue["online"] = (config.processes[i].softdog >= PROCESS_WATCHDOG_TIME) ? false : true;
|
||||
vLog(LOG_DEBUG, "link %s, %d\n", linkId, (config.processes[i].softdog >= PROCESS_WATCHDOG_TIME) ? 0 : 1);
|
||||
jsonLink.append(jsonValue);
|
||||
}
|
||||
}
|
||||
@ -2832,6 +2833,7 @@ void CRYDevice::heart_beat(int status)
|
||||
#endif
|
||||
jsonValue["deviceId"] = deviceId;
|
||||
jsonValue["online"] = (config.units[i].softdog >= PROCESS_WATCHDOG_TIME) ? false : true;
|
||||
vLog(LOG_DEBUG, "unit %s, %d\n", deviceId, (config.units[i].softdog >= PROCESS_WATCHDOG_TIME) ? 0 : 1);
|
||||
jsonDevice.append(jsonValue);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user