Merged changes from upstream

Updated usage of htprint255
Main - wifi state machine changes. Ping state machine changes.
Ping - added flag if ping is already started or not, added silent flag
This commit is contained in:
valeklubomir
2022-10-25 12:38:53 +02:00
parent d30b78db53
commit c84dddcb3b
6 changed files with 56 additions and 28 deletions

View File

@ -545,9 +545,9 @@ int http_fn_index(http_request_t* request) {
PingWatchDog_GetTotalLost(), PingWatchDog_GetTotalReceived());
if (Main_HasWiFiConnected())
{
hprintf128(request, "<h5>Wifi RSSI: %i</h5>", HAL_GetWifiStrength());
hprintf255(request, "<h5>Wifi RSSI: %i</h5>", HAL_GetWifiStrength());
}
hprintf128(request, "<h5>MQTT State: %s RES: %d(%s)<br>", (Main_HasMQTTConnected() == 1) ? "connected" : "disconnected",
hprintf255(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(),