کد HTML:
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
//******************************************************************
const char *ssid = "Test_ESP";
IPAddress apIP(192, 168, 56, 1);
IPAddress broadcastIP(255, 255, 255, 255);
ESP8266WebServer server(8888);
//********************************************************************
void setup() {
delay(1000);
Serial.begin(9600);
Serial.println();
Serial.print("Configuring access point...");
WiFi.mode(WIFI_AP_STA);
WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
WiFi.softAP(ssid);
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
Serial.print(" MAC Address is:");
Serial.println (WiFi.softAPmacAddress());
server.begin();
Serial.println("HTTP server started");
}
void loop() {
}