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

@@ -262,7 +262,7 @@ void ClientRecvTask::log(Client* client, MQTTSNPacket* packet, MQTTSNString* id)
void ClientRecvTask::log(const char* clientId, MQTTSNPacket* packet)
{
char pbuf[SIZE_OF_LOG_PACKET * 3];
char pbuf[ (SIZE_OF_LOG_PACKET + 3) * 3];
char msgId[6];
switch (packet->getType())