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
314 stars 179 forks source link

[MQTTSNGateway] Bug fixes #209

Closed hihigupt closed 4 years ago

hihigupt commented 4 years ago

Changes:

  1. Support MQTT connect with only login provided. Eg. When connecting to Azure IoTHub with cert base auth, you only require login.
  2. Proper cleanup of ssl context when server disconnects and client does read on that ssl session. SSL_read api in this case causes SSL_ERROR_SYSCALL.

Testing:

All gateway test passes with following message: Step11:Disconnect complete ######### All tests complete! ###########

icraggs commented 4 years ago

Hi. For this to be merged directly you'll need to sign the ECA and sign-off the commit, as described in the contributing file. If that's not possible, we'll be able to make the changes ourselves.

icraggs commented 4 years ago

I've added the changes. Thanks.