Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (41 loc) · 1.08 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.08 KB

NodeMCU-LedStripController-v2

NodeMCU sketch to control led strip

Using

  • 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"
          }

Development

  • Button to reset wifi