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

@@ -428,7 +428,7 @@ char* MQTTSNPacket::print(char* pbuf)
int i = MQTTSNPacket_decode(_buf, _bufLen, &value);
int size = _bufLen > SIZE_OF_LOG_PACKET ? SIZE_OF_LOG_PACKET : _bufLen;
for (; i < size; i++)
for (i = 0; i < size; i++)
{
sprintf(*pptr, " %02X", *(_buf + i));
*pptr += 3;