NodeMCU

Node MCU - Building a simple Webserver

NodeMCU supports multiple modes for WiFi setup such as Station , Access Point (AP) and other combinations.The tutorial aims at setting up a station which connects to a local Wifi AP and create a local service in ESP8266 to control GPIO's .

Code

We have two lua scripts An init.lua to establish a connect and server.lua to run a local service (TCP Server).