bus v0.1.4 Bus.Message

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

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

Functions

connect(client_id, username, password, will_topic, will_message, will_qos, will_retain, clean_session, keep_alive)

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

connect_ack(session_present, return_code)

Creates a ConnAck struct with the guards applied.

disconnect()

Creates a Disconnect struct.

ping_request()

Creates a Pingreq struct.

ping_response()

Creates a Pingresp struct.

publish(topic, message, dup, qos, retain)

Creates a Publish struct with the guards applied.

publish(packet_id, topic, message, dup, qos, retain)

Creates a Publish struct with the guards applied.

publish_ack(packet_id)

Creates a PubAck struct with the guards applied.

publish_complete(packet_id)

Creates a PubComp struct with the guards applied.

publish_receive(packet_id)

Creates a PubRec struct with the guards applied.

publish_release(packet_id)

Creates a PubRel struct with the guards applied.

subscribe(packet_id, topics, requested_qoses)

Creates a Subscribe struct with the guards applied.

subscribe_ack(packet_id, granted_qoses)

Creates a SubAck struct with the guards applied.

unsubscribe(packet_id, topics)

Creates a Unsubscribe struct with the guards applied.

unsubscribe_ack(packet_id)

Creates a UnsubAck struct with the guards applied.