mqtt_packet_map_decoder (mqtt_packet_map v1.3.1)
View SourceMQTT packet decoder
Summary
Functions
Decode an incoming MQTT packet, returns a decoded packet or an error.
Types
-type decode_return() :: {ok, {mqtt_packet_map:mqtt_packet(), binary()}} | {error, mqtt_packet_map:decode_error()}.
Functions
-spec decode(mqtt_packet_map:mqtt_version(), binary()) -> decode_return().
Decode an incoming MQTT packet, returns a decoded packet or an error.