Monitor MQTT feed and activate status-light when appropriate
- See config.h for parameter configuration
- WiFi SSID and password are contained in a
secrets.h
file that is not included in this repo. Instead you'll find the filesecrets_template.h
, which should be copied tosecrets.h
and then edited to supply the right access credentials and configuration values to match your deployment environment. - common wire from light to COM on relay
- hot wire from light to NO on relay
- connect both 2 wire JST connectors
- Adafruit_MQTT
- MCU/WiFi
- Adafruit Feather Huzzah 8266 https://www.adafruit.com/product/2471
- Relay
- Adafruit Non-Latching Relay Featherwing https://www.adafruit.com/product/2895
- Light
- 1x: AC powered (traffic) light
- MQTT services
- Relay setup
- During initialization, setup()), will:
- blink on and off 3 times for 1 second to indicate that WiFi connected and the light works as well.
- blink on and off 3 times for 3 seconds to indicate a failure to connect to WiFi. The device will then reset and try again.
- During regular operation, if the device can not connect to MQTT it will:
- blink on and off 3 times for 2 second. If the problem persists, this will occur again and again.
- See GitHub Issues for project
- publish WiFi RSSI