Giter Club home page Giter Club logo

led-control's Introduction

ESP8266 - NodeMCU Led Control over WiFi

hyperdx logo

How it works?

The ESP8266 starts up as an access point and creates a WiFi network. You can connect to the access point from any device and go to 192.168.10.1 on your browser and you can configure which wifi network the ESP8266 should connect to and also the API token which will be used to control the brightness. Once the ESP8266 connects to the WiFi network, it saves the credentials and restarts. After that ESP8266 connects to the WiFi network and starts a web server. You can connect to the WiFi network from any device and control the LED connected to the ESP8266.

API

The brightness of the LED value is between 0 and 1023.

GET /get

Returns the status of the LED in JSON format.

Parameters:

  • token: API token
758

GET /update

Updates the brightness of the LED.

Parameters:

  • token: API token
  • value: Brightness of the LED (0-1023)
  • save (optional): If true, the brightness will be saved to the EEPROM
ok

Flash button cases

You can use Flash button on NodeMCU for some functions.

While Running:

Times Clicked Function
2 Restart NodeMCU
3 Flash config

Notes:

  • When you restart the device if you keep pressing on Flash button, the device will Flash network credentials and start as an access point.

led-control's People

Contributors

duoquote avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.