ESP32 minimal Wifi access point example (PlatformIO / Arduino)

This minimal example shows how to create a wifi access point on the ESP32 using the Arduino framework on PlatformIO.

main.cpp
#include <Arduino.h>
#include <WiFi.h>

void setup() {
  WiFi.softAP("MyWifiName", "MyWifiPassword");
}

void loop() {
  // put your main code here, to run repeatedly:
}

As you can see, it’s really simple. Just call

examples_call.cpp
WiFi.softAP("MyWifiName", "MyWifiPassword");

and the WiFi library will take care of the rest.


Check out similar posts by category: Electronics, ESP8266/ESP32, PlatformIO