Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Arduino Access Point ESP8266

#include <ESP8266WiFi.h>        // Include the Wi-Fi library

const char *ssid = "ESP8266 Access Point"; // The name of the Wi-Fi network that will be created
const char *password = "thereisnospoon";   // The password required to connect to it, leave blank for an open network

void setup() {
  Serial.begin(115200);
  delay(10);
  Serial.println('
');

  WiFi.softAP(ssid, password);             // Start the access point
  Serial.print("Access Point "");
  Serial.print(ssid);
  Serial.println("" started");

  Serial.print("IP address:	");
  Serial.println(WiFi.softAPIP());         // Send the IP address of the ESP8266 to the computer
}

void loop() { }
Source by tttapa.github.io #
 
PREVIOUS NEXT
Tagged: #Arduino #Access #Point
ADD COMMENT
Topic
Name
3+4 =