#include "WiFi.h"

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

void loop() {
  Serial.println("Scanning...WIFI network");
  WiFi.scanNetworks();
  Serial.println("Scan done!");
  String WifiName = WiFi.SSID(0);
  Serial.println("WIFI Name:");
  Serial.println(WifiName);
  delay(5000);
}