BL09XX - implemented saving of consumption history

HAL - Added fields for saving metring variables
OTA - added donwload progress in HTTP front page
MAIN - added Saving of metering status before reboot.
This commit is contained in:
valeklubomir
2022-10-25 22:36:40 +02:00
parent c84dddcb3b
commit 0573d8cd91
11 changed files with 183 additions and 12 deletions

View File

@ -582,6 +582,11 @@ int http_fn_index(http_request_t* request) {
hprintf255(request, "</h5>");
}
if (ota_progress()>=0)
{
hprintf255(request, "<h5>OTA In Progress. Status: %06lXh</h5>", ota_progress());
}
// for normal page loads, show the rest of the HTML
if (!http_getArg(request->url, "state", tmpA, sizeof(tmpA))) {
poststr(request, "</div>"); // end div#state