NodeMCU sketch to control led strip
-
To connect the device to the network visit: tzapu/WiFIManager
-
API
Description Method Endpoint Body elements To start the action described in the body POST /rgb "red", "green" and "blue" To receive the status of the colors GET /rgb/status - To receive the type of device GET /get_type - -
Examples
-
Request body for "/rgb":
{ "red": 120, "green": 250, "blue": 40 }
-
Response body for "/rgb":
{ "msg": "SOME_MESSAGE" }
-
Response body for "/rgb/status":
{ "red": 120, "green": 250, "blue": 40 }
-
Response body for "/get_type":
{ "type": "led_strip_controller" }
-
- Button to reset wifi