mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-10 01:39:54 +03:00
autodetect, download and install firmware upgrades
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#ifndef WebStatusService_h
|
||||
#define WebStatusService_h
|
||||
|
||||
#define HARDWARE_STATUS_SERVICE_PATH "/rest/hardwareStatus"
|
||||
#define SYSTEM_STATUS_SERVICE_PATH "/rest/systemStatus"
|
||||
#define EMSESP_HARDWARE_STATUS_SERVICE_PATH "/rest/hardwareStatus"
|
||||
#define EMSESP_SYSTEM_STATUS_SERVICE_PATH "/rest/systemStatus"
|
||||
#define EMSESP_CHECK_UPGRADE_PATH "/rest/checkUpgrade"
|
||||
|
||||
#include <semver200.h>
|
||||
|
||||
namespace emsesp {
|
||||
|
||||
@@ -13,6 +16,7 @@ class WebStatusService {
|
||||
private:
|
||||
void systemStatus(AsyncWebServerRequest * request);
|
||||
void hardwareStatus(AsyncWebServerRequest * request);
|
||||
void checkUpgrade(AsyncWebServerRequest * request, JsonVariant json);
|
||||
};
|
||||
|
||||
} // namespace emsesp
|
||||
|
||||
Reference in New Issue
Block a user