Skip to content

API Reference

chumicro_mqtt

Non-blocking MQTT 3.1.1 client for CircuitPython, MicroPython, and CPython.

MQTTBackpressureError

Bases: MQTTError

The outbound queue is full, so the caller must back off.

MQTTConnectError

Bases: MQTTError

CONNACK arrived with a non-zero return code.

MQTTError

Bases: Exception

Base class for every chumicro-mqtt failure.

MQTTProtocolError

Bases: MQTTError

The broker sent something the spec doesn't allow.

UnsupportedQoSError

Bases: MQTTError

User requested QoS 2, which is not implemented.

topic_matches(topic, pattern)

Return True when topic matches the wildcard pattern.