You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
Malik Mann edited this page Jan 25, 2019
·
2 revisions
MQTT connection
For those of you who want to use MQTT, McLighting now supports MQTT via the great PubSubClient library. You could enable/disable the MQTT functionality by (un-)commenting the "#define ENABLE_MQTT" in "definitions.h".
The PubSubClient library is only needed when you have MQTT enabled (this is the default).
MQTT broker setup
When you're in AP mode, you can enter your MQTT host (IP or hostname), port, user and password. Leave empty when not used.
MQTT topics
McLighting listens for commands on the topic "<CONFIGURED_HOSTNAME>/in" and responds on "<CONFIGURED_HOSTNAME>/out".
MQTT API
The MQTT API is esentially the same as for WebSockets. Only the command "~" does not work, because the response seems to big for the library.