Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2021-11-12 16:11:07 +09:00
parent 9c67c75939
commit e263dc37b1
3 changed files with 10 additions and 10 deletions

View File

@@ -78,13 +78,13 @@ RFCOMMCONF = { "GatewayTestClient", // ClientId
/*------------------------------------------------------
* Client Configuration (theMqcon)
*------------------------------------------------------*/
MQTTSNCONF = { 60, //KeepAlive [seconds]
true, //Clean session
300, //Sleep duration [seconds]
"", //WillTopic
"", //WillMessage
0, //WillQos
false //WillRetain
MQTTSNCONF = { 60, //KeepAlive [seconds]
true, //Clean session
300, //Sleep duration [seconds]
"willtopic", //WillTopic
"willmsg", //WillMessage
0, //WillQos
false //WillRetain
};
/*------------------------------------------------------

View File

@@ -149,7 +149,7 @@ void ClientRecvTask::run()
{
log(client, packet, 0);
if (client->isDisconnect() && packet->getType() != MQTTSN_CONNECT)
if (client->isDisconnect() && packet->getType() != MQTTSN_CONNECT && packet->getType() != MQTTSN_WILLTOPIC && packet->getType() != MQTTSN_WILLMSG)
{
WRITELOG("%s MQTTSNGWClientRecvTask %s is not connecting.%s\n",
ERRMSG_HEADER, client->getClientId(), ERRMSG_FOOTER);