mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-06 07:15:45 +00:00
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:
@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user