Reference.WiFiBegin History

Hide minor edits - Show changes to markup

November 22, 2011, at 07:03 AM by Scott Fitzgerald -
Changed line 33 from:
to:
Changed line 47 from:
to:
November 22, 2011, at 07:00 AM by Scott Fitzgerald -
Changed line 33 from:

[@

to:
Changed line 47 from:

@]

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

WiFi

WiFi.begin()

Description

Initializes the WiFi library's network settings and provides the current status.

Syntax

WiFi.begin();
WiFi.begin(ssid);
WiFi.begin(ssid, pass);
WiFi.begin(ssid, keyIndex, key);

Parameters

ssid: the SSID (Service Set Identifier) is the name of the WiFi network you want to connect to.

keyIndex: WEP encrypted networks can hold up to 4 different keys. This identifies which key you are going to use.

key: a hexadecimal string used as a security code for WEP encrypted networks.

pass: WPA encrypted networks use a password in the form of a string for security.

Returns

  • WL_CONNECTED when connected to a network
  • WL_IDLE_STATUS when not connected to a network, but powered on

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);
}

void loop () {}

Share