WeMos D1 R2 Access Point setup

install Windows USB to UART driver (CH340)

Connect your ESP8266 to your computer.

Open your Arduino program/IDE and paste the following code:

#include <ESP8266WiFi.h>

WiFiServer server(80); //Initialize the server on Port 80

void setup() {

WiFi.mode(WIFI_AP); //Our ESP8266-12E is an AccessPoint
WiFi.softAP(“ESP8266-AP“, “A1B2C3D4“); // Provide the (SSID, password); .
server.begin(); // Start the HTTP Server

}

void loop() { }