bus v0.1.4 Bus.Decoder

Provides functions for decoding bytes(binary) to Message structs

Summary

Functions

Decodes a binary to a tuple containing Message struct and a remainder

Decodes remaining length from bytes encoded using a variable length encoding scheme specified in MQTT 3.1.1 spec section 2.2.3

Functions

decode(bytes)

Decodes a binary to a tuple containing Message struct and a remainder

decode_remaining_length(bytes)

Decodes remaining length from bytes encoded using a variable length encoding scheme specified in MQTT 3.1.1 spec section 2.2.3