include <ESP8266WiFi.h> void setup() { Serial.begin(115200); Serial.setDebugOutput(true); Serial.println("Config AP"); WiFi.softAP("ESP_DEMO", "secure"); Serial.println("Set to STA mode"); WiFi.mode(WIFI_STA); Serial.println("Wifi begin"); WiFi.begin("MYAP", "********"); }
WIFI_AP, WIFI_STA, or WIFI_STA_AP