Control and monitoring of WiFi access point interface.
More...
Control and monitoring of WiFi access point interface.
Access point class.
- Note
- The WiFi access point interface provides a WiFi network access point. Control of WiFi AP including WiFi SSID and password and IP address.
- See also
- WiFi Station Interface
- Todo:
- How is wifi access point dhcp controlled?
bool AccessPointClass::config |
( |
const String & |
ssid, |
|
|
String |
password, |
|
|
AUTH_MODE |
mode, |
|
|
bool |
hidden = false , |
|
|
int |
channel = 7 , |
|
|
int |
beaconInterval = 200 |
|
) |
| |
Configure WiFi AP.
- Parameters
-
ssid | WiFi AP SSID |
password | WiFi AP password |
mode | WiFi AP mode |
hidden | True to hide WiFi AP (Default: Visible) |
channel | WiFi AP channel (Default: 7) |
beaconInterval | WiFi AP beacon interval in milliseconds (Default: 200ms) |
- Return values
-
void AccessPointClass::enable |
( |
bool |
enabled, |
|
|
bool |
save = false |
|
) |
| |
Enable or disable WiFi AP.
- Parameters
-
enabled | True to enable AP. False to disable. |
save | True to save operational mode to flash, False to set current operational mode only |
Get WiFi AP IP address.
- Return values
-
String AccessPointClass::getMAC |
( |
char |
sep = '\0' | ) |
|
Get WiFi AP MAC address.
- Parameters
-
optional | separator between bytes (e.g. ':') |
- Return values
-
IPAddress AccessPointClass::getNetworkBroadcast |
( |
| ) |
|
Get WiFi AP broadcast address.
- Return values
-
IPAddress AccessPointClass::getNetworkGateway |
( |
| ) |
|
Get WiFi AP default gateway.
- Return values
-
IPAddress AccessPointClass::getNetworkMask |
( |
| ) |
|
Get WiFi AP network mask.
- Return values
-
String AccessPointClass::getPassword |
( |
| ) |
|
Get WiFi access point password.
- Return values
-
String | WiFi access point password |
String AccessPointClass::getSSID |
( |
| ) |
|
Get WiFi access point SSID.
- Return values
-
bool AccessPointClass::isEnabled |
( |
| ) |
|
Get WiFi AP enable status.
- Return values
-
bool | True if WiFi AP enabled. |
bool AccessPointClass::setIP |
( |
IPAddress |
address | ) |
|
Set WiFi AP IP addres.
- Parameters
-
address | New IP address for WiFi AP |
- Return values
-
Global instance of WiFi access point object.
- Note
- Use WiFiAccessPoint.function to access WiFi access point functions
-
Example:
1 if(WiFiAccessPoint.config("ESP_AP", AUTH_OPEN))
2 WiFiAccessPoint.enable(true);