Syntax
int connectWPA(
    const char* ssid, 
    const char * passphrase
);
ContentsIndex
PreviousUpNext
LWiFiClass::connectWPA Method
LWiFiClass Class | Example
Syntax
int connectWPA(
    const char* ssid, 
    const char * passphrase
);
Description

Starts Wi-Fi connection with WPA/WPA-2 passphrase.

Parameters
Parameters 
Description 
const char* ssid 
The pointer to the SSID string.
 
const char * passphrase 
The passphrase. Valid characters in a passphrase
must be between ASCII 32-126 (decimal).
 
Returns

> 0: Successful. 

<= 0: Failed. 

 

Example
    LWiFi.begin();   // Turns on the Wi-Fi module.
    LWiFi.connectWPA("wifi_ap_ssid", "mypassword");
    LWiFi.end();     // Turns off the Wi-Fi module.
File

LWiFi.h

Class