crossbar.bridge.mqtt._utils

Attributes

Exceptions

ParseFailure

Common base class for all non-exit exceptions.

SerialisationFailure

Common base class for all non-exit exceptions.

Functions

build_header(packet_id, flags, payload_length)

build_string(string)

iterbytes(b)

read_prefixed_data(data)

Reads the next 16-bit-uint prefixed data block from data.

read_string(data)

Reads the next MQTT pascal-style string from data.

Module Contents

exception ParseFailure[source]

Bases: Exception

Common base class for all non-exit exceptions.

exception SerialisationFailure[source]

Bases: Exception

Common base class for all non-exit exceptions.

_validator[source]
build_header(packet_id, flags, payload_length)[source]
build_string(string)[source]
iterbytes(b)[source]
read_prefixed_data(data)[source]

Reads the next 16-bit-uint prefixed data block from data.

read_string(data)[source]

Reads the next MQTT pascal-style string from data.