Refacter the MQTT-SN Packet printf()

Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2019-01-15 16:38:55 +09:00
parent 7e13268466
commit c7b8ef1e54
4 changed files with 354 additions and 181 deletions

View File

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