Protopixel Technical Task Firmware Engineer
- Add Led state
- Add button interrupt that toggles the led
- Add a solution for the button bouncing
- Add a WiFi connection
- Add a MQTT connection
- Add a MQTT/LED state synchronization
- Connect to a WiFi network
- Execute the MQTT broker using docker
docker run -d --name emqx -p 1883:1883 -p 8083:8083 -p 8084:8084 -p 8883:8883 -p 18083:18083 emqx/emqx:5.2.0-
Found the IP address of the MQTT broker
-
In the src/config.h file, change the following values:
Define the type of board, choose between LAMP or CONTROLLER
#define WIFI_SSID "YOUR_WIFI_SSID"
#define WIFI_PASS "YOUR_WIFI_PASSWORD"
#define MQTT_BROKER_IP "YOUR_MQTT_BROKER_IP"In the file demo.mp4 you can find a video of the demonstration of the task.