// heroes never die
#include <WiFi.h>

void setup() {
  

  Serial.begin(115200);
  Serial.println("iniciando...");
delay (500);
Serial.println("Procurando redes...");
int qtde =  WiFi.scanNetworks();
Serial.println("Redes Encontradas: ");

 for (int x = 0; x< qtde; x++){
   Serial.println("Nome da Rede...");
   Serial.println(WiFi.SSID(x));
   Serial.print("Potencia do Sinal: ");
   Serial.println(WiFi.RSSI(x));
   Serial.print("tipo Criptografia: ");
   String cripto;

   switch (WiFi.encryptionType(x)){
     case 2: cripto = "TKIP (WPA)"; break;
     case 4: cripto = "CCMP (WPA)"; break;
     case 5: cripto = "WEP"; break;
     case 7: cripto = "Nenhuma"; break;
     case 8: cripto = "Auto"; break;
  
   }

   Serial.println(cripto);
   Serial.println("------------------------------------------------");
 }
}

void loop() {
}