exmqttc v0.4.1 Exmqttc.Callback behaviour
Behaviour module for Exmqttc callbacks
Link to this section Summary
Callbacks
Called if the connection process or the callback handler process receive unknown handle_call/3
calls
Called if the connection process or the callback handler process receive unknown handle_cast/2
calls
Called once a connection has been established
Called on disconnection from the broker
Called if the connection process or the callback handler process receive unknown handle_info/2
calls, and by extend also unknown Elixir messages
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
handle_call(message :: term, from :: {pid, atom}, state :: term) :: {:ok, state :: term}
Called if the connection process or the callback handler process receive unknown handle_call/3
calls.
handle_cast(message :: term, state :: term) :: {:ok, state :: term} :: {:ok, state :: term}
Called if the connection process or the callback handler process receive unknown handle_cast/2
calls.
Called once a connection has been established.
handle_disconnect(state :: any) :: {:ok, state :: any}
Called on disconnection from the broker.
handle_info(message :: term, state :: term) :: {:ok, state :: term} :: {:ok, state :: term}
Called if the connection process or the callback handler process receive unknown handle_info/2
calls, and by extend also unknown Elixir messages.
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.