#mqtt-client #devices #home-assistant #broker #topic #qos #level

mcutie

A no-std, no-alloc, opinionated MQTT client for IoT devices

1 unstable release

new 0.1.0 Dec 3, 2024

#3 in #home-assistant

MIT license

65KB
1.5K SLoC

mcutie

A simple MQTT client designed for use in embedded devices using the embassy-net networking stack. Requires an async executor. Runs in no-std contexts and includes specific support for Home Assistant's device auto-discovery.

The stack is designed to be a singleton for the lifetime of the application. Once initialised it runs forever attempting to maintain a connection to the MQTT broker. It includes support for automatically subscribing to some topics when connected to the broker and registering a last will message to be published if the connection to the broker it lost.

Has some basic support for the different MQTT QoS levels.

Dependencies

~6.5MB
~130K SLoC