Hulaaki.Message

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

Source

Summary

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(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

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.

Source
connect_ack(session_present, return_code)

Creates a ConnAck struct with the guards applied.

Source
disconnect()

Creates a Disconnect struct.

Source
ping_request()

Creates a Pingreq struct.

Source
ping_response()

Creates a Pingresp struct.

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

Creates a Publish struct with the guards applied.

Source
publish_ack(packet_id)

Creates a PubAck struct with the guards applied.

Source
publish_complete(packet_id)

Creates a PubComp struct with the guards applied.

Source
publish_receive(packet_id)

Creates a PubRec struct with the guards applied.

Source
publish_release(packet_id)

Creates a PubRel struct with the guards applied.

Source
subscribe(packet_id, topics, requested_qoses)

Creates a Subscribe struct with the guards applied.

Source
subscribe_ack(packet_id, granted_qoses)

Creates a SubAck struct with the guards applied.

Source
unsubscribe(packet_id, topics)

Creates a Unsubscribe struct with the guards applied.

Source
unsubscribe_ack(packet_id)

Creates a UnsubAck struct with the guards applied.

Source