How circuitsforfun/esp_hue works
ESP Hue is a small Arduino library for controlling Philips Hue lights and groups from an ESP8266. A sketch uses the ESPHue API to read device information or state, and to send power, color, brightness, temperature, and transition settings to the Hue bridge. The implementation uses a caller-supplied WiFiClient for HTTP requests. The excerpts show light and group state methods calling their respective info methods; other method-level details are documented in the README. Example sketches are not included as runtime components.
Main entry points: ESPHue.cpp Light info and state
Components 7
Light API
- Light info and state
src/ESPHue.cpp - Light controls
src/ESPHue.cpp
Group API
- Group info and state
src/ESPHue.cpp - Group controls
src/ESPHue.cpp
Other components
- Arduino sketch
- WiFiClient
- Hue bridge
Connections 11
- Arduino sketch → Light info and state: calls
README.adoc - Arduino sketch → Light controls: calls
README.adoc - Arduino sketch → Group info and state: calls
README.adoc - Arduino sketch → Group controls: calls
README.adoc - Light info and state → Light info and state: state calls info
src/ESPHue.cpp - Group info and state → Group info and state: state calls info
src/ESPHue.cpp - Light info and state → WiFiClient: sends HTTP
src/ESPHue.cpp - Light controls → WiFiClient: sends HTTP
src/ESPHue.cpp - Group info and state → WiFiClient: sends HTTP
src/ESPHue.cpp - Group controls → WiFiClient: sends HTTP
src/ESPHue.cpp - WiFiClient → Hue bridge: connects and sends