extend info by name
This commit is contained in:
@ -16,9 +16,10 @@
|
||||
|
||||
|
||||
#define NUM_OF_DEVICES 10
|
||||
|
||||
#define MAX_LEN_OF_NAME 16
|
||||
typedef struct {
|
||||
uint8_t token;
|
||||
char name[MAX_LEN_OF_NAME+1];
|
||||
uint8_t address;
|
||||
uint16_t queryPeriod;
|
||||
uint16_t timer;
|
||||
@ -43,8 +44,8 @@ public:
|
||||
MqttClient(RequestSender *meterBusMaster);
|
||||
void begin(CmdServer *cmdServer);
|
||||
void exec();
|
||||
virtual void sendResponse(uint8_t *responseBuffer, uint16_t responseBufferLength, uint8_t token);
|
||||
virtual void sendError(uint8_t code, uint8_t token);
|
||||
virtual void sendResponse(uint8_t *responseBuffer, uint16_t responseBufferLength, uint8_t token, char *name);
|
||||
virtual void sendError(uint8_t code, uint8_t token, char *name);
|
||||
friend class MqttConfig;
|
||||
private:
|
||||
MqttConfig m_mqttConfig;
|
||||
|
Reference in New Issue
Block a user