🎐 Makes analytics a part of system service
This commit is contained in:
@@ -5,9 +5,13 @@
|
||||
#include <PsychicHttp.h>
|
||||
#include <WiFi.h>
|
||||
#include <task_manager.h>
|
||||
#include <event_socket.h>
|
||||
#include <filesystem.h>
|
||||
#include <global.h>
|
||||
|
||||
#define MAX_ESP_ANALYTICS_SIZE 2024
|
||||
#define EVENT_ANALYTICS "analytics"
|
||||
|
||||
namespace system_service {
|
||||
esp_err_t handleReset(PsychicRequest *request);
|
||||
esp_err_t handleRestart(PsychicRequest *request);
|
||||
@@ -20,6 +24,9 @@ void restart();
|
||||
void sleep();
|
||||
void status(JsonObject &root);
|
||||
void metrics(JsonObject &root);
|
||||
|
||||
void emitMetrics();
|
||||
|
||||
const char *resetReason(int reason);
|
||||
} // namespace system_service
|
||||
|
||||
|
||||
Reference in New Issue
Block a user