ex_mqtt v0.2.0 ExMqtt.Message View Source

Provides the structs and constructors for different kinds of message packets in the MQTT protocol.

Link to this section Summary

Functions

Creates a ConnAck struct with the guards applied

Creates a Disconnect struct

Creates a Pingreq struct

Creates a Pingresp struct

Creates a Publish struct with the guards applied

Creates a Publish struct with the guards applied

Creates a PubAck struct with the guards applied

Creates a PubComp struct with the guards applied

Creates a PubRec struct with the guards applied

Creates a PubRel struct with the guards applied

Creates a Subscribe struct with the guards applied

Creates a SubAck struct with the guards applied

Creates a Unsubscribe struct with the guards applied

Creates a UnsubAck struct with the guards applied

Link to this section Functions

Link to this function connect(client_id, username, password, will_topic, will_message, will_qos, will_retain, clean_session, keep_alive) View Source

Creates a Connect struct with the guards applied to the arguments.

Link to this function connect_ack(session_present, return_code) View Source

Creates a ConnAck struct with the guards applied.

Creates a Disconnect struct.

Creates a Pingreq struct.

Creates a Pingresp struct.

Link to this function publish(topic, message, dup, qos, retain) View Source

Creates a Publish struct with the guards applied.

Link to this function publish(packet_id, topic, message, dup, qos, retain) View Source

Creates a Publish struct with the guards applied.

Creates a PubAck struct with the guards applied.

Link to this function publish_complete(packet_id) View Source

Creates a PubComp struct with the guards applied.

Link to this function publish_receive(packet_id) View Source

Creates a PubRec struct with the guards applied.

Link to this function publish_release(packet_id) View Source

Creates a PubRel struct with the guards applied.

Link to this function subscribe(packet_id, topics, requested_qoses) View Source

Creates a Subscribe struct with the guards applied.

Link to this function subscribe_ack(packet_id, granted_qoses) View Source

Creates a SubAck struct with the guards applied.

Link to this function unsubscribe(packet_id, topics) View Source

Creates a Unsubscribe struct with the guards applied.

Link to this function unsubscribe_ack(packet_id) View Source

Creates a UnsubAck struct with the guards applied.