Closed michaelmarconi closed 5 years ago
Shutdown that you see isn't graceful shutdown. Graceful shutdown isn't possible yet. I'm waiting for stable async/await to start the work.
OK. Is there any way currently to cleanly shutdown the connection to the broker then? I'm simply dropping the client, which results in an error message at the broker.
I've moved to the master
branch and calling mqtt_client.shutdown()
has the desired effect of sending a clean shutdown signal to the broker, thanks!
I'd like to gracefully shut down the MQTT client. I see an example of calling
mqtt_client.shutdown()
, however this method doesn't seem to exist on version0.30.1
of this library?