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:
valeklubomir
2022-10-23 03:01:44 +02:00
parent 312d18110e
commit 6fe708162c
13 changed files with 153 additions and 20 deletions

View File

@ -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(),