IoT Component

This commit is contained in:
Siwat Sirichai 2023-12-28 12:46:39 +07:00
parent 908c3f9c0e
commit d3497b671e
8 changed files with 209 additions and 6 deletions

View file

@ -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;
};