exmqttc v0.3.0 Exmqttc.Callback behaviour
Behaviour module for Exmqttc Callbacks
Link to this section Summary
Callbacks
Called once a connection has been established
Called on disconnection from the broker
Called upon reception of a MQTT message, passes in topic and message
Initializing the callback module, returned data is passed in as state on the next call
Link to this section Callbacks
Called once a connection has been established.
Link to this callback
handle_disconnected(state)
handle_disconnected(state :: any) :: {:ok, state :: any}
Called on disconnection from the broker.
Link to this callback
handle_publish(topic, message, state)
Called upon reception of a MQTT message, passes in topic and message.
Initializing the callback module, returned data is passed in as state on the next call.