#include const char* ssid = "FabLabNet"; const char* password = "password9"; void setup() { Serial.begin(115200); delay(10); // We start by connecting to a WiFi network Serial.println(); Serial.println(); Serial.print("Connecting to "); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.println("WiFi connected"); Serial.println("IP address: "); Serial.println(WiFi.localIP()); //Making an Access point WiFi.softAP("XiaoEsp32Network", "password"); } //Only Access point code in loop function void loop() { Serial.print("Host Name:"); Serial.println(WiFi.softAPgetHostname()); Serial.print("Host IP:"); Serial.println(WiFi.softAPIP()); Serial.print("Host IPV6:"); Serial.println(WiFi.softAPIPv6()); Serial.print("Host SSID:"); Serial.println(WiFi.SSID()); Serial.print("Host Broadcast IP:"); Serial.println(WiFi.softAPBroadcastIP()); Serial.print("Host mac Address:"); Serial.println(WiFi.softAPmacAddress()); Serial.print("Number of Host Connections:"); Serial.println(WiFi.softAPgetStationNum()); Serial.print("Host Network ID:"); Serial.println(WiFi.softAPNetworkID()); Serial.print("Host Status:"); Serial.println(WiFi.status()); delay(1000); }