error count in all sendError calls
This commit is contained in:
@ -242,7 +242,7 @@ void MqttClient::sendResponse(uint8_t *responseBuffer, uint16_t responseBufferLe
|
||||
}
|
||||
}
|
||||
|
||||
void MqttClient::sendError(uint8_t code, uint8_t token, char *name) {
|
||||
void MqttClient::sendError(uint8_t code, uint16_t count, uint8_t token, char *name) {
|
||||
String msg = String("{ \"metadata\": { \"device\": \"MeterbusHub\", \"error\": ")
|
||||
+ code + String(", \"token\": ") + token + String(", \"name\": ") + String(name) + String(" }, \"data\": { \"uptime\": ") + m_uptime + String("}}");
|
||||
if (m_disconnectState == 0) {
|
||||
|
Reference in New Issue
Block a user