Syntax
int connect(
    const char* ssid, 
    const LWiFiLoginInfo & loginInfo
);
ContentsIndex
PreviousUpNext
LWiFiClass::connect Method (char*, LWiFiLoginInfo &)
LWiFiClass Class | Example
Syntax
int connect(
    const char* ssid, 
    const LWiFiLoginInfo & loginInfo
);
Description

Starts the Wi-Fi connection. The login information is stored in loginInfo.

Parameters
Parameters 
Description 
const char* ssid 
The pointer to the SSID string.
 
const LWiFiLoginInfo & loginInfo 
An LWiFiKey that stores login information.
 
Returns

> 0: Successful. 

<= 0: Failed. 

 

Example
    LWiFi.begin();   // Turns on the Wi-Fi module.
    LWiFi.connect("wep_network_ssid", LWiFiLoginInfo(LWIFI_WEP, "wep_password"));
    LWiFi.end();     // Turns off the Wi-Fi module.
File

LWiFi.h

Class