exmqttc v0.3.0 Exmqttc
Exmqttc
provides a connection to a MQTT server based on emqttc
Link to this section Summary
Types
A PID like type
A QoS level
A single topic, a list of topics or a list of tuples of topic and QoS level
Functions
Disconnect socket to MQTT server
Publish a message to MQTT
Start the Exmqttc client. callback_module
is used for callbacks and should implement the Exmqttc.Callback
behaviour.
opts
are passed directly to GenServer.
mqtt_opts
are reformatted so all options can be passed in as a Keyworld list
Subscribe to the given topic(s) given as topics
with a given qos
Publish a message to MQTT synchronously
Subscribe to the given topics while blocking until the subscribtion has been confirmed by the server
Link to this section Types
A PID like type
A QoS level
A single topic, a list of topics or a list of tuples of topic and QoS level
Link to this section Functions
Disconnect socket to MQTT server
publish(pid, binary, binary, list) :: :ok
Publish a message to MQTT
Start the Exmqttc client. callback_module
is used for callbacks and should implement the Exmqttc.Callback
behaviour.
opts
are passed directly to GenServer.
mqtt_opts
are reformatted so all options can be passed in as a Keyworld list.
Subscribe to the given topic(s) given as topics
with a given qos
.
sync_publish(pid, binary, binary, list) :: :ok
Publish a message to MQTT synchronously
Subscribe to the given topics while blocking until the subscribtion has been confirmed by the server.