IoT Component
This commit is contained in:
parent
908c3f9c0e
commit
d3497b671e
8 changed files with 209 additions and 6 deletions
|
@ -1,2 +1,11 @@
|
|||
|
||||
class
|
||||
#pragma once
|
||||
#include <ExpansionCard.hpp>
|
||||
#include <PubSubClient.h>
|
||||
class IoTComponent {
|
||||
public:
|
||||
virtual bool begin(ExpansionCard *card);
|
||||
virtual void handleMqttMessage(char *topic, char *payload);
|
||||
void setMqttClient(PubSubClient *mqtt);
|
||||
private:
|
||||
PubSubClient *mqtt;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue