KxSystems / mqtt

MQTT messaging protocol interface
https://code.kx.com/q/interfaces
Apache License 2.0
9 stars 12 forks source link

Allow forced disconnections from a client #33

Closed cmccarthy1 closed 4 years ago

cmccarthy1 commented 4 years ago

Internally raised issue

The current interface allows a user to connect to a Client using .mqtt.conn which is a wrapper around MQTTClient_connect however there isn't a mechanism to disconnect.

Exposure of the function MQTTClient_disconnect() from the Eclipse C api should allow disconnections to be handled gracefully

https://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/_m_q_t_t_client_8h.html#a1e4d90c13a3c0705bc4a13bfe64e6525