larger buffer
This commit is contained in:
parent
79d9d2fd7c
commit
4f27f18970
@ -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
|
Loading…
x
Reference in New Issue
Block a user