Reference   Language | Libraries | Comparison | Changes

WiFiNINA : WiFi class

WiFi.beginProvision()

Description

Initializes the WiFiNINA library's in provision mode. This mode implements the behaviour needed to connect the board to known APs or to select new ones if nothing known can be reached.

When called, the function will try to connect to a previously associated access point.
If this fails, an access point named "WiFiNINA-XXXX" will be created, where XXXX are the last 4 digits of the boards MAC address. You need to connect to the access point created, then visit http://10.10.0.1 or http://wifinina.local and configure an SSID and password of an AP within reach. The password to access the AP is password. When the new association is done, the next connection will be to that AP.

Syntax

WiFi.beginProvision();

Parameters

none

Returns

WL_CONNECTED when connected to a network
WL_PROVISIONING when connecting to previously associated access point fails

Example

SORRY, There is an error at our code repository, please inform to web@arduino.cc

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.