working mqtt implementation
This commit is contained in:
parent
1163f2e30f
commit
bb2991cb2d
6 changed files with 149 additions and 76 deletions
|
@ -34,6 +34,7 @@ public:
|
|||
void publishToTopic(char *topic, char *payload);
|
||||
void registerMqttCallback(void (*callback)(char *, char *));
|
||||
void registerRelativeMqttCallback(void (*callback)(char *, char *));
|
||||
void registerSubscribeCallback(void (*callback)(void));
|
||||
void setBaseTopic(char *base_topic);
|
||||
IPAddress getETHIp();
|
||||
|
||||
|
@ -46,6 +47,7 @@ private:
|
|||
void mqttCallback(char *topic, byte *payload, unsigned int length);
|
||||
void (*user_mqtt_callback)(char *, char *);
|
||||
void (*user_relative_mqtt_callback)(char *, char *);
|
||||
void (*user_subscribe_callback)(void);
|
||||
void publishRelative(uint8_t card_id, char *topic, char *payload);
|
||||
bool active;
|
||||
PubSubClient mqtt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue