Home

Awesome

TinyMqtt

Release AUnit Tests Issues Esp8266 Esp32 Gpl 3.0 Mqtt 3.1.1

TinyMqtt is a small, fast and capable Mqtt Broker and Client for Esp8266 / Esp32 / Esp WROOM

Statuses of all unit tests of TinyMqtt and its dependencies

ProjectUnit tests result
TinyMqtt
Dependencies
TinyConsole
EpoxyDuinoAUnit Tests
EspMockAUnit Tests
AUnitAUnit Tests
AceRoutineAUnit Tests

Features

Limitations

Quickstart

Examples

ExampleDescription
client-with-wifistandalone example
client-without-wifistandalone example
simple-clientConnect the ESP to an external Mqtt broker
simple-brokerSimple Mqtt broker with your ESP
tinymqtt-testComplex console example

Retained messages

Qos 1 is not supported, but retained messages are. So a new subscription is able to send old messages. This feature is disabled by default. The default retain parameter of MqttBroker::MqttBroker takes an optional (0 by default) number of retained messages. MqttBroker::retain(n) will also make the broker store n messages at max.

Standalone mode (zeroconf)

-> The zeroconf mode is not yet implemented zeroconf clients to connect to broker on local network.

In Zeroconf mode, each ESP is a a broker and scans the local network. After a while one ESP naturally becomes a 'master' and all ESP are connected together. No problem if the master dies, a new master will be choosen soon.

TODO List

License

Gnu GPL 3.0, see LICENSE.