encryptionType()



Açıklama

Geçerli ağın şifreleme türünü alır

Sözdizimi

WiFi .encryptionType ();
WiFi .encryptionType (wifiAccessPoint);

Parametreler

wifiAccessPoint : hangi ağdan bilgi alınacağını belirtir

İadeler

bayt : değer şifreleme türünü temsil eder

  • TKIP (WPA) = 2
  • WEP = 5
  • CCMP (WPA) = 4
  • YOK = 7
  • OTOMATİK = 8

Misal

#include <SPI.h>
#include <WiFi101.h>

//SSID of your network
char ssid[] = "yourNetwork";
//password of your WPA Network
char pass[] = "secretPassword";

void setup()
{
 WiFi.begin(ssid, pass);

  if ( status != WL_CONNECTED) {
    Serial.println("Couldn't get a wifi connection");
    while(true);
  }
  // if you are connected, print out info about the connection:
  else {
   // print the encryption type:
  byte encryption = WiFi.encryptionType();
  Serial.print("Encryption Type:");
  Serial.println(encryption,HEX);
  }
}

void loop () {}