Update: Add MQTT-SN message length to the Gateway log.

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2019-01-15 09:37:54 +09:00
parent fd782f8e50
commit 7e13268466
6 changed files with 6 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ void ClientSendTask::run()
void ClientSendTask::log(Client* client, MQTTSNPacket* packet)
{
char pbuf[SIZE_OF_LOG_PACKET * 3];
char pbuf[(SIZE_OF_LOG_PACKET + 3) * 3];
char msgId[6];
const char* clientId = client ? (const char*)client->getClientId() : UNKNOWNCL ;