eclipse / paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
313 stars 179 forks source link

Add bug 165 fix back in #228

Closed MBakerParagon closed 3 years ago

MBakerParagon commented 3 years ago

Signed-off-by: MBakerParagon mbaker@paragoninnovations.com

d91de45 accidentally got rid of the fix from 7aa44d9.

More info here.

7aa44d9

The current state of both develop and master are back to the bug described in the link above. I just tested it and this fixes that behavior.

Before:

client wakes -> has a waiting message -> sends a pingreq -> the gateway responds with the waiting message

Now:

client wakes -> has a waiting message -> sends a pingreq -> the gateway responds with the waiting message ->gateway sends pingresp

MBakerParagon commented 3 years ago

Looks like my second attempt should pass all checks. I have no idea why I was having so much trouble with the sign off.