This document describes an Arduino sketch that controls an RGB LED light via MQTT messages. It connects an ESP8266 WiFi microcontroller to a home automation system. The sketch subscribes to MQTT topics to receive light color, brightness, and on/off commands, and publishes the current state to other topics. It maps MQTT payloads to RGB color values and brightness levels using PWM.
This document describes an Arduino sketch that controls an RGB LED light via MQTT messages. It connects an ESP8266 WiFi microcontroller to a home automation system. The sketch subscribes to MQTT topics to receive light color, brightness, and on/off commands, and publishes the current state to other topics. It maps MQTT payloads to RGB color values and brightness levels using PWM.
This document describes an Arduino sketch that controls an RGB LED light via MQTT messages. It connects an ESP8266 WiFi microcontroller to a home automation system. The sketch subscribes to MQTT topics to receive light color, brightness, and on/off commands, and publishes the current state to other topics. It maps MQTT payloads to RGB color values and brightness levels using PWM.