larger buffer

This commit is contained in:
Wolfgang Hottgenroth 2020-11-15 01:48:05 +01:00
parent 79d9d2fd7c
commit 4f27f18970
No known key found for this signature in database
GPG Key ID: 656C88C7C1734267
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ static void mqttStatusPublisher(void *handle) {
logMsg("mqsp: publishing status");
t_mbusCommStats *mbusCommStats = mbusCommGetStats();
char buf[64];
snprintf(buf, 64, "{\"uptime\":\"%ld\", \"tasks\":\"%d\", \"requests\":\"%d\", \"errors\":\"%d\"}",
snprintf(buf, 128, "{\"uptime\":\"%ld\", \"tasks\":\"%d\", \"requests\":\"%d\", \"errors\":\"%d\"}",
HAL_GetTick()/1000, schTaskCnt(), mbusCommStats->requestCnt, mbusCommStats->errorCnt);
bool res = publish(&mqttClient, StatusTopic, (const char*)buf, strlen(buf), false);
coloredMsg(LOG_YELLOW, "mqch, publish returned %d", res);

@ -1 +1 @@
Subproject commit 3d52c14d53682c81cf7d25825c335c66d4c26578
Subproject commit 44647d686f41aa14446ed9e59bd6dd7b64b3541f