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

Starts a Wi-Fi connection for open networks.

Parameters
Parameters 
Description 
const char* ssid 
The pointer to the SSID string.
 
Returns

> 0: Successful. 

<= 0: Failed. 

 

Example
    LWiFi.begin();   // Turns on the Wi-Fi module.
    LWiFi.connect("open_network_ssid");
    LWiFi.end();     // Turns off the Wi-Fi module.
File

LWiFi.h

Class