Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

wifi access point in esp8266

#include <ESP8266WiFi.h>

void setup()
{
  Serial.begin(115200);
  Serial.println();

  Serial.print("Setting soft-AP ... ");
  boolean result = WiFi.softAP("ESPsoftAP_01", "pass-to-soft-AP");
  if(result == true)
  {
    Serial.println("Ready");
  }
  else
  {
    Serial.println("Failed!");
  }
}

void loop()
{
  Serial.printf("Stations connected = %d
", WiFi.softAPgetStationNum());
  delay(3000);
}
Source by arduino-esp8266.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #wifi #access #point
ADD COMMENT
Topic
Name
7+7 =