Skip to content

Instantly share code, notes, and snippets.

@noob-master147
Created May 11, 2020 13:28
Show Gist options
  • Save noob-master147/d342858b33bda4ada5a0cd57970959ed to your computer and use it in GitHub Desktop.
Save noob-master147/d342858b33bda4ada5a0cd57970959ed to your computer and use it in GitHub Desktop.
#include <ESP8266WiFi.h> // WiFi Library
// The name of the Wi-Fi network to be created
const char *ssid = "ESP8266 Access Point";
const char *password = "password_here"; // The password to connect
void setup()
{
Serial.begin(115200);
delay(10);
Serial.println('\n');
WiFi.softAP(ssid, password); // Start the access point
Serial.print("Access Point \"");
Serial.print(ssid);
Serial.println("\" started");
Serial.print("IP address:\t");
Serial.println(WiFi.softAPIP()); //Send the IP address of the ESP8266
}
void loop()
{
// Type your Code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment