This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MQTT-SN gateway not sending PINGREQ

Hi, 

I'm running example mqttsn_sleepy_subscriber from nRF5_SDK_for_Thread_and_Zigbee_v4.1.0_32ce5f8 on a nRF52840-DK with RaspPi_OT_Border_Router_Demo_v4.1.0-1.alpha.img on a Raspberry Pi 3 and a nRF52840-Dongle running NCP plugged in.

I can see from logs of Paho MQTT-SN gateway that it doesn't send PINGREQ to gateway after publishing messages to sleepy client, while it does when there are no messages to publish. Consequently no PINGRESP is delivered to the client in those cases.

I've seen that this bug has already been reported (https://github.com/eclipse/paho.mqtt-sn.embedded-c/issues/165) and a commit to solve it has been added (https://github.com/eclipse/paho.mqtt-sn.embedded-c/commit/7aa44d94d1125074935a523303fe6f46eef70e14). How can I apply these changes to my gateway?

Thank you in advance.


Related