hbmqtt
hbmqtt copied to clipboard
On_Connect and On_Disconnect handlers
Is there currently a supported (or unsupported) method to add callback handlers for the on_connect and on_disconnect event?
From stepping through the source, it looks like registering a Plugin would be the best way to get this done, but I'm unsure about how to do that (I couldn't find any documentation on how to create/register a plugin).
Any thoughts/direction/tips would be greatly appreciated.
on_connect callback should be really useful for subscribing to topic. with auto_reconnect on I can't find the right place to run subscribes at any connect.
on_message callback should be good too.
hi bros, anyone know how broke can handle message received? thanks!