Reference   Language | Libraries | Comparison | Changes

WiFiNINA : WiFi class

beginEnterprise()

Description

Initializes the WiFiNINA library's network settings for a common WPA2 Enterprise network with username and password authentication.

Syntax

WiFi.beginEnterprise(ssid, username, password);

Parameters

ssid: the SSID (Service Set Identifier) is the name of the WiFi network you want to connect to.
username: username part of WPA2 Enterprise (RADIUS) credentials
password: password part of WPA2 Enterprise (RADIUS) credentials

Returns

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

Example


//SSID of your network
char ssid[] = "yourNetwork";
//username you got from the network administrator
char user[] = "secretUser";
//password you got from the network administrator
char pass[] = "secretPassword";

void setup()
{
   WiFi.beginEnterprise(ssid, user, pass);
}


See Also



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.