Reference.WiFiEncryptionType History

Hide minor edits - Show changes to markup

May 18, 2012, at 06:40 PM by Scott Fitzgerald -
Changed lines 12-13 from:

WiFi.encryptionType(networkItem);

to:

WiFi.encryptionType(wifiAccessPoint);

Changed lines 16-17 from:

networkItem: specifies which network to return information from

to:

wifiAccessPoint: specifies which network to get information from

May 18, 2012, at 06:33 PM by Scott Fitzgerald -
Changed lines 12-13 from:
to:

WiFi.encryptionType(networkItem);

Changed lines 16-17 from:

none

to:

networkItem: specifies which network to return information from

March 02, 2012, at 10:13 PM by Scott Fitzgerald -
Changed line 21 from:
  • TKIP = 2
to:
  • TKIP (WPA) = 2
Changed line 23 from:
  • CCMP = 4
to:
  • CCMP (WPA) = 4
November 28, 2011, at 04:14 PM by Scott Fitzgerald -
Added line 21:
  • TKIP = 2
Deleted line 22:
  • TKIP = 2
November 28, 2011, at 04:14 PM by Scott Fitzgerald -
Changed lines 19-20 from:

byte

to:

byte : value represents the type of encryption

  • WEP = 5
  • TKIP = 2
  • CCMP = 4
  • NONE = 7
  • AUTO = 8
November 22, 2011, at 08:36 AM by Scott Fitzgerald -
Changed lines 23-24 from:

[@

to:
Changed line 50 from:

@]

to:
November 22, 2011, at 03:52 AM by Scott Fitzgerald -
Added lines 1-49:

WiFi

WiFi.encryptionType()

Description

Gets the encryption type of the current network

Syntax

WiFi.encryptionType();

Parameters

none

Returns

byte

Example

#include <WiFi.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 () {}

Share