Module mqtt_string

Module mqtt_string 

Source
Expand description

MQTT string implementation using BeBytes 2.3.0 size expressions

MQTT strings are prefixed with a 2-byte length field in big-endian format.

Structs§

MqttString
MQTT string with automatic size handling via BeBytes size expressions

Functions§

decode_string
Decodes a UTF-8 string with a 2-byte length prefix (compatibility function)
encode_string
Encodes a UTF-8 string with a 2-byte length prefix (compatibility function)
string_len
Calculates the encoded length of a string (compatibility function)