ESPMegaPRO-v3-SDK/Template Project/lib/ESPMegaPRO/IoTComponent.hpp

14 lines
385 B
C++
Raw Normal View History

2023-12-28 05:46:39 +00:00
#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);
2023-12-28 06:14:18 +00:00
virtual void publishReport();
virtual uint8_t getType();
protected:
2023-12-28 05:46:39 +00:00
PubSubClient *mqtt;
};