MqttTransport.on_ready

MqttTransport.on_ready(callback)[source]

Allows to hook-up to the event triggered when the connection to MQTT broker is ready.

Parameters:
callbackfunction

Function to invoke when the connection is established.