send buffer handling and token stuff
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#define NUM_OF_DEVICES 10
|
||||
|
||||
typedef struct {
|
||||
uint8_t token;
|
||||
uint8_t address;
|
||||
uint16_t queryPeriod;
|
||||
uint16_t timer;
|
||||
@ -27,8 +28,8 @@ public:
|
||||
MqttClient(RequestSender *meterBusMaster);
|
||||
void begin();
|
||||
void exec();
|
||||
virtual void sendResponse(uint8_t *responseBuffer, uint16_t responseBufferLength);
|
||||
virtual void sendError(uint8_t code);
|
||||
virtual void sendResponse(uint8_t *responseBuffer, uint16_t responseBufferLength, uint8_t token);
|
||||
virtual void sendError(uint8_t code, uint8_t token);
|
||||
private:
|
||||
EthernetClient m_client;
|
||||
RequestSender *m_meterBusMaster;
|
||||
@ -36,6 +37,7 @@ private:
|
||||
uint8_t m_disconnectState;
|
||||
uint32_t m_disconnectTime;
|
||||
uint32_t m_uptime;
|
||||
uint8_t m_deviceIdx;
|
||||
mbusDevTuple_t m_mbusDevTuple[NUM_OF_DEVICES];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user