mqtt_packet_map_decoder (mqtt_packet_map v1.3.1)

View Source

MQTT packet decoder

Summary

Functions

Decode an incoming MQTT packet, returns a decoded packet or an error.

Types

decode_return/0

-type decode_return() ::
          {ok, {mqtt_packet_map:mqtt_packet(), binary()}} | {error, mqtt_packet_map:decode_error()}.

Functions

decode(MQTTVersion, B)

Decode an incoming MQTT packet, returns a decoded packet or an error.

parse_varint(B)