I'm looking to use Boost::MQTT5 for my application, an embedded device communicating with other devices, but I kind of need to know (preferably also on a callback) whether the client has been connected/disconnected.
My current application uses mosquitto and asio, making the interface between the two a common pain point. My abstraction was easy to convert, but the missing part seems to be the on_disconnect/on_connect callbacks.
The application has different behaviour based on the connection (ie: stop sending more messages and create a safe state/recover)
So is there such a thing, or should I keep looking?