ex_mqtt v0.2.0 ExMqtt.Encoder View Source
Provides functions for encoding Message structs to bytes(binary)
Link to this section Summary
Functions
Calculates the remaining length (as specified in MQTT spec) for a given Message struct
Encodes the fixed header (as specified in MQTT spec) for a given Message struct
Encodes remaining length using a variable length encoding scheme specified in MQTT 3.1.1 spec section 2.2.3
Encodes the payload for a given Message struct
Encodes variable header for a given Message struct
Link to this section Types
packet_value() :: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14
Link to this section Functions
Calculates the remaining length (as specified in MQTT spec) for a given Message struct
Encodes the fixed header (as specified in MQTT spec) for a given Message struct
Encodes remaining length using a variable length encoding scheme specified in MQTT 3.1.1 spec section 2.2.3
Encodes the payload for a given Message struct
Encodes variable header for a given Message struct