Skip to content

Instantly share code, notes, and snippets.

@li2hub
Last active October 17, 2018 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save li2hub/eee6ac676d9c5aed5381b30fa0ac8e94 to your computer and use it in GitHub Desktop.
Save li2hub/eee6ac676d9c5aed5381b30fa0ac8e94 to your computer and use it in GitHub Desktop.
#include <ESP8266WiFi.h>
const char *ssid = "ESP8266";
const char *password = "12345678";
void setup() {
Serial.begin(115200);
Serial.println();
Serial.print("Configuring access point...");
WiFi.mode(WIFI_AP);
WiFi.softAP(ssid, password);
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment