Add secure management reports and honor GPS off
This commit is contained in:
1 parent
ad0ea545d3
commit
4ba26ff4af
30 files changed
+2109
-76
No files matched your search
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "ManagementReport.h"
|
||||
#include "IdentityStore.h"
|
||||
#include <Mesh.h>
|
||||
|
||||
class NodePrefs;
|
||||
class CommonCLI;
|
||||
class CommonCLICallbacks;
|
||||
class ClientACL;
|
||||
class SensorManager;
|
||||
|
||||
namespace mesh {
|
||||
class ManagementReporter {
|
||||
struct Working;
|
||||
Mesh& mesh;
|
||||
MainBoard& board;
|
||||
SensorManager& sensors;
|
||||
ClientACL& acl;
|
||||
NodePrefs& prefs;
|
||||
CommonCLICallbacks& callbacks;
|
||||
CommonCLI& cli;
|
||||
FILESYSTEM* fs;
|
||||
Working* work = nullptr;
|
||||
uint8_t key[32] = {};
|
||||
uint8_t direct_days = 5, flood_days = 21;
|
||||
bool enabled = false, keyed = false, healthy = true;
|
||||
management::Schedule schedule;
|
||||
uint32_t sequence = 0, last_ms = 0, fraction_ms = 0, checkpoint = 0;
|
||||
uint64_t uptime = 0;
|
||||
bool save();
|
||||
bool load();
|
||||
bool allocate();
|
||||
void cancel();
|
||||
void snapshot();
|
||||
void start(bool flood);
|
||||
void sendPage();
|
||||
uint32_t jitter() const;
|
||||
public:
|
||||
ManagementReporter(Mesh& mesh, MainBoard& board, SensorManager& sensors,
|
||||
ClientACL& acl, NodePrefs& prefs,
|
||||
CommonCLICallbacks& callbacks, CommonCLI& cli,
|
||||
FILESYSTEM* fs);
|
||||
~ManagementReporter();
|
||||
void loop(uint64_t node_uptime_seconds = UINT64_MAX);
|
||||
bool command(char* command, char* reply, size_t size);
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user