|
Internal Interface Wrap
API reference
|
Abstract base class for WiFi functionality. More...
#include <BaseWifi.h>
Static Public Member Functions | |
| static std::string_view | GetErrorString (hf_wifi_err_t error) |
| Get error description string. | |
Protected Member Functions | |
| BaseWifi ()=default | |
| Protected constructor - only derived classes can instantiate. | |
| BaseWifi (const BaseWifi &)=delete | |
| Copy constructor - deleted to prevent copying. | |
| BaseWifi & | operator= (const BaseWifi &)=delete |
| Assignment operator - deleted to prevent copying. | |
Abstract base class for WiFi functionality.
This class provides the interface for WiFi operations including:
|
virtualdefaultnoexcept |
Virtual destructor for proper cleanup of derived classes.
|
protecteddefault |
Protected constructor - only derived classes can instantiate.
Copy constructor - deleted to prevent copying.
|
pure virtualnoexcept |
Configure Access Point parameters.
| config | AP configuration |
Implemented in EspWifi.
|
pure virtualnoexcept |
Configure station parameters.
| config | Station configuration |
Implemented in EspWifi.
|
pure virtualnoexcept |
Connect to a WiFi network (station mode)
| timeout_ms | Connection timeout in milliseconds (0 for default) |
Implemented in EspWifi.
|
pure virtualnoexcept |
Deinitialize the WiFi subsystem.
Implemented in EspWifi.
|
pure virtualnoexcept |
Disconnect from WiFi network.
Implemented in EspWifi.
|
pure virtualnoexcept |
Get connected network BSSID.
| bssid | Buffer to store BSSID (6 bytes) |
Implemented in EspWifi.
|
pure virtualnoexcept |
Get number of connected stations.
Implemented in EspWifi.
|
pure virtualnoexcept |
Get current IP information.
| ip_info | Reference to store IP information |
Implemented in EspWifi.
|
pure virtualnoexcept |
Get MAC address.
| mac | Buffer to store MAC address (6 bytes) |
| interface | WiFi interface (0 for station, 1 for AP) |
Implemented in EspWifi.
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Get signal strength (RSSI)
Implemented in EspWifi.
|
pure virtualnoexcept |
Get scan results.
| networks | Vector to store found networks |
| max_networks | Maximum number of networks to return (0 for all) |
Implemented in EspWifi.
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Initialize the WiFi subsystem.
| mode | WiFi operating mode |
Implemented in EspWifi.
Check if Access Point is running.
Implemented in EspWifi.
Assignment operator - deleted to prevent copying.
|
pure virtualnoexcept |
Register event callback.
| callback | Event callback function |
Implemented in EspWifi.
|
pure virtualnoexcept |
Set WiFi channel.
| channel | Channel number (1-14) |
Implemented in EspWifi.
|
pure virtualnoexcept |
Set MAC address.
| mac | MAC address to set (6 bytes) |
| interface | WiFi interface (0 for station, 1 for AP) |
Implemented in EspWifi.
|
pure virtualnoexcept |
Set WiFi operating mode.
| mode | WiFi operating mode |
Implemented in EspWifi.
|
pure virtualnoexcept |
Set power save mode.
| mode | Power save mode |
Implemented in EspWifi.
|
pure virtualnoexcept |
Start Access Point.
Implemented in EspWifi.
|
pure virtualnoexcept |
Start network scan.
| show_hidden | Include hidden networks in scan |
| passive | Use passive scanning |
| max_scan_time_ms | Maximum scan time per channel |
Implemented in EspWifi.
|
pure virtualnoexcept |
Stop Access Point.
Implemented in EspWifi.
|
pure virtualnoexcept |
Unregister event callback.
Implemented in EspWifi.