send buffer handling and token stuff
This commit is contained in:
@ -24,8 +24,8 @@ public:
|
||||
virtual String getCmdName() { return "SO"; }
|
||||
virtual String getHelp() { return "Send octets"; }
|
||||
virtual String exec(String params);
|
||||
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:
|
||||
RequestSender *m_meterBusMaster;
|
||||
};
|
||||
@ -62,7 +62,7 @@ public:
|
||||
void begin(CmdServer *cmdServer);
|
||||
void exec();
|
||||
uint8_t *getSendBuffer();
|
||||
void sendBufferReady(uint16_t bufLen, ResponseCallback *responseCallback);
|
||||
void sendBufferReady(uint16_t bufLen, uint8_t token, ResponseCallback *responseCallback);
|
||||
friend class CalibrationSupport;
|
||||
private:
|
||||
SendOctets m_sendOctets;
|
||||
@ -74,6 +74,7 @@ private:
|
||||
uint16_t m_sendBufLen;
|
||||
uint16_t m_recvBufLen;
|
||||
uint8_t m_retransmitCount;
|
||||
uint8_t m_token;
|
||||
ResponseCallback *m_responseCallback;
|
||||
uint8_t m_sendBuffer[SEND_BUFFER_SIZE];
|
||||
uint8_t m_recvBuffer[RECEIVE_BUFFER_SIZE];
|
||||
|
Reference in New Issue
Block a user