Input RTU
This commit is contained in:
parent
9988075791
commit
2ee196a25b
3 changed files with 118 additions and 0 deletions
15
ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaRTU.hpp
Normal file
15
ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/ESPMegaRTU.hpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
#include <ESPMegaIoT.hpp>
|
||||
|
||||
class ESPMegaRTU {
|
||||
public:
|
||||
ESPMegaRTU();
|
||||
~ESPMegaRTU();
|
||||
virtual void subscribe();
|
||||
virtual void begin(char* remote_base_topic, uint8_t remote_card_slot, ESPMegaIoT* iot);
|
||||
protected:
|
||||
char* remoteBaseTopic;
|
||||
uint8_t remoteBaseTopicLength;
|
||||
uint8_t cardSlot;
|
||||
ESPMegaIoT* iot;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue