mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-10 11:25:41 +00:00
BL0937 - measurements refinement, added past seven days stats
BL09XX - HTTP plugin afdjustment, added new output doe daily stats. DRV - updated NTP. NTP - added HTTP plugin HAL - added Wifi Disconnect command (TODO: other platforms) MAIN - ping watchdog added wifi disconnect command after ping watchdog triggered
This commit is contained in:
@ -543,7 +543,11 @@ int http_fn_index(http_request_t* request) {
|
||||
|
||||
hprintf255(request, "<h5>Ping watchdog - %i lost, %i ok!</h5>",
|
||||
PingWatchDog_GetTotalLost(), PingWatchDog_GetTotalReceived());
|
||||
hprintf255(request, "<h5>MQTT State: %s RES: %d(%s)<br>", (Main_HasMQTTConnected() == 1) ? "connected" : "disconnected",
|
||||
if (Main_HasWiFiConnected())
|
||||
{
|
||||
hprintf128(request, "<h5>Wifi RSSI: %i</h5>", HAL_GetWifiStrength());
|
||||
}
|
||||
hprintf128(request, "<h5>MQTT State: %s RES: %d(%s)<br>", (Main_HasMQTTConnected() == 1) ? "connected" : "disconnected",
|
||||
MQTT_GetConnectResult(), get_error_name(MQTT_GetConnectResult()));
|
||||
hprintf255(request, "MQTT ErrMsg: %s <br>", (MQTT_GetStatusMessage() != NULL) ? MQTT_GetStatusMessage() : "");
|
||||
hprintf255(request, "MQTT Stats:CONN: %d PUB: %d RECV: %d ERR: %d </h5>", MQTT_GetConnectEvents(),
|
||||
|
||||
Reference in New Issue
Block a user