class LWiFiClass;
class LWiFiClass;
LWifiClass Class
LWifiClass exposes the Wi-Fi AP scan and connect function of the LinkIt ONE board. Use LWiFi singleton object to access the actual functions. Do not declare LWiFiClass instances. After a connection to an Wi-Fi access point is established, use LWiFiClient object to create a TCP socket; or use LWiFiUDP object to create a UDP socket.
LWiFi.h
|
Method |
Description |
|
Turns on and initializes the Wi-Fi module. | |
|
Returns the current BSSID associated with the network. It's the MAC address of the Access Point. | |
|
Starts a Wi-Fi connection for open networks. | |
|
Starts the Wi-Fi connection. The login information is stored in loginInfo. | |
|
Starts a Wi-Fi connection with WEP encryption. Configure a key into the device. The key type (WEP-40, WEP-104) is determined by the size of the key (5 bytes for WEP-40, 13 bytes for WEP-104). | |
|
Starts Wi-Fi connection with WPA/WPA-2 passphrase. | |
|
Disconnects from the Wi-Fi AP. | |
|
Uninitializes and turns off the Wi-Fi module. | |
|
Gets the gateway IP address. | |
|
Resolves the given hostname to an IP address. | |
|
Gets the interface IP address. | |
|
Gets the interface MAC address. | |
|
Returns the current RSSI/Received Signal Strength in dBm that's associated with the network. | |
|
Returns the RSSI of the networks discovered during the scanNetworks. | |
|
Start the scan for available Wi-Fi networks. | |
|
Returns the current SSID that's associated with the network. | |
|
Returns the SSID discovered during the Wi-Fi network scan. | |
|
Returns the connection status. | |
|
Gets the interface subnet mask address. |