This function initializes the WiFi library's network settings and provides the current status.
WiFi.begin(ssid, keyIndex, key);
- ssid: the Service Set Identifier (SSID) 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.
WL_CONNECTED when connected to a network
WL_IDLE_STATUS when not connected to a network, but powered on