Remote Variable
This commit is contained in:
parent
a2fe4a3d67
commit
dbdb8eefbe
5 changed files with 49 additions and 1492 deletions
17
ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/RemoteVariable.hpp
Normal file
17
ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/RemoteVariable.hpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#pragma once
|
||||
#include <ESPMegaIoT.hpp>
|
||||
class RemoteVariable
|
||||
{
|
||||
public:
|
||||
RemoteVariable();
|
||||
~RemoteVariable();
|
||||
void begin(size_t size, char* topic, ESPMegaIoT* iot);
|
||||
void subscribe();
|
||||
char* getValue();
|
||||
void mqtt_callback(char* topic, char* payload);
|
||||
private:
|
||||
ESPMegaIoT* iot;
|
||||
char* topic;
|
||||
char* value;
|
||||
size_t size;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue