remote variable tested and moved into production
This commit is contained in:
parent
df2543ad58
commit
3467c90e52
6 changed files with 49 additions and 27 deletions
|
@ -5,21 +5,21 @@ class RemoteVariable
|
|||
public:
|
||||
RemoteVariable();
|
||||
~RemoteVariable();
|
||||
void begin(size_t size, char* topic, ESPMegaIoT* iot);
|
||||
void begin(size_t size, char* topic, ESPMegaIoT* iot, bool useValueRequest, char* valueRequestTopic);
|
||||
void setValue(char* value);
|
||||
void enableSetValue(char* setValueTopic);
|
||||
void begin(size_t size, const char* topic, ESPMegaIoT* iot);
|
||||
void begin(size_t size, const char* topic, ESPMegaIoT* iot, bool useValueRequest, const char* valueRequestTopic);
|
||||
void setValue(const char* value);
|
||||
void enableSetValue(const char* setValueTopic);
|
||||
void subscribe();
|
||||
void requestValue();
|
||||
char* getValue();
|
||||
private:
|
||||
void mqtt_callback(char* topic, char* payload);
|
||||
ESPMegaIoT* iot;
|
||||
char* topic;
|
||||
const char* topic;
|
||||
char* value;
|
||||
size_t size;
|
||||
bool useValueRequest;
|
||||
char* valueRequestTopic;
|
||||
const char* valueRequestTopic;
|
||||
bool useSetValue;
|
||||
char* setValueTopic;
|
||||
const char* setValueTopic;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue