mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-09 08:47:55 +01:00
Implement reboot reason for BL602 (#1053)
* Implement RSSI for BL602 (#5) Adds RSSI for BL602, looks ok, reports similar to what BK7231N reports in the same place * Update http_fns.c * Update http_fns.c
This commit is contained in:
@@ -24,7 +24,7 @@ static char SUBMIT_AND_END_FORM[] = "<br><input type=\"submit\" value=\"Submit\"
|
||||
#ifdef WINDOWS
|
||||
// nothing
|
||||
#elif PLATFORM_BL602
|
||||
|
||||
#include <bl_sys.h>
|
||||
#elif PLATFORM_W600 || PLATFORM_W800
|
||||
|
||||
#elif PLATFORM_XR809
|
||||
@@ -805,6 +805,10 @@ typedef enum {
|
||||
s = "Wdt";
|
||||
hprintf255(request, "<h5>Reboot reason: %i - %s</h5>", i, s);
|
||||
}
|
||||
#elif PLATFORM_BL602
|
||||
char reason[26];
|
||||
bl_sys_rstinfo_getsting(reason);
|
||||
hprintf255(request, "<h5>Reboot reason: %s</h5>", reason);
|
||||
#endif
|
||||
if (CFG_GetMQTTHost()[0] == 0) {
|
||||
hprintf255(request, "<h5>MQTT State: not configured<br>");
|
||||
|
||||
Reference in New Issue
Block a user