error count in all sendError calls

This commit is contained in:
Wolfgang Hottgenroth
2017-01-04 17:17:08 +01:00
parent 8b34b562f8
commit 20edb0bf68
7 changed files with 8 additions and 8 deletions

View File

@ -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) {