#include <IWifiController.h>
WiFi Controller Interface Handles WiFi stack initialization and connection management
Definition at line 57 of file IWifiController.h.
◆ ~IWifiController()
| virtual cdc::hal::IWifiController::~IWifiController |
( |
| ) |
|
|
virtualdefault |
◆ connect()
| virtual bool cdc::hal::IWifiController::connect |
( |
const char * | ssid, |
|
|
const char * | password, |
|
|
uint32_t | timeoutMs = 10000 ) |
|
pure virtual |
Connect to an access point (station mode)
- Parameters
-
| ssid | Network SSID |
| password | Network password (nullptr for open networks) |
| timeoutMs | Connection timeout in milliseconds |
- Returns
- true if connection initiated
Implemented in cdc::hal::WifiController.
◆ disable()
| virtual void cdc::hal::IWifiController::disable |
( |
| ) |
|
|
pure virtual |
◆ disconnect()
| virtual void cdc::hal::IWifiController::disconnect |
( |
| ) |
|
|
pure virtual |
◆ enable()
◆ getConnectedStations()
| virtual uint8_t cdc::hal::IWifiController::getConnectedStations |
( |
| ) |
const |
|
pure virtual |
◆ getCurrentSsid()
| virtual const char * cdc::hal::IWifiController::getCurrentSsid |
( |
| ) |
const |
|
pure virtual |
◆ getIpAddress()
| virtual bool cdc::hal::IWifiController::getIpAddress |
( |
char * | ip, |
|
|
size_t | len ) const |
|
pure virtual |
Get current IP address (when connected)
- Parameters
-
| ip | Output buffer for IP string (min 16 bytes) |
- Returns
- true if IP available
Implemented in cdc::hal::WifiController.
◆ getMacAddress()
| virtual bool cdc::hal::IWifiController::getMacAddress |
( |
uint8_t * | mac | ) |
const |
|
pure virtual |
Get WiFi MAC address
- Parameters
-
| mac | Output buffer (6 bytes) |
- Returns
- true if address retrieved
Implemented in cdc::hal::WifiController.
◆ getMode()
| virtual WifiMode cdc::hal::IWifiController::getMode |
( |
| ) |
const |
|
pure virtual |
◆ getRssi()
| virtual int8_t cdc::hal::IWifiController::getRssi |
( |
| ) |
const |
|
pure virtual |
Get signal strength of current connection
- Returns
- RSSI in dBm, or 0 if not connected
Implemented in cdc::hal::WifiController.
◆ getScanResults()
| virtual uint8_t cdc::hal::IWifiController::getScanResults |
( |
WifiScanResult * | results, |
|
|
uint8_t | maxResults ) |
|
pure virtual |
Get scan results
- Parameters
-
| results | Output array |
| maxResults | Maximum entries to return |
- Returns
- Number of results found
Implemented in cdc::hal::WifiController.
◆ getWifiState()
| virtual WifiState cdc::hal::IWifiController::getWifiState |
( |
| ) |
const |
|
pure virtual |
◆ isConnected()
| virtual bool cdc::hal::IWifiController::isConnected |
( |
| ) |
const |
|
pure virtual |
◆ isEnabled()
| virtual bool cdc::hal::IWifiController::isEnabled |
( |
| ) |
const |
|
pure virtual |
◆ isScanComplete()
| virtual bool cdc::hal::IWifiController::isScanComplete |
( |
| ) |
const |
|
pure virtual |
◆ startAp()
| virtual bool cdc::hal::IWifiController::startAp |
( |
const char * | ssid, |
|
|
const char * | password = nullptr, |
|
|
uint8_t | channel = 1 ) |
|
pure virtual |
Start an access point
- Parameters
-
| ssid | AP name |
| password | AP password (nullptr for open) |
| channel | WiFi channel (1-13) |
- Returns
- true if AP started
Implemented in cdc::hal::WifiController.
◆ startScan()
| virtual bool cdc::hal::IWifiController::startScan |
( |
| ) |
|
|
pure virtual |
◆ MAX_SCAN_RESULTS
| uint8_t cdc::hal::IWifiController::MAX_SCAN_RESULTS = 32 |
|
staticconstexpr |
Maximum number of scan results retained/returned. Single source of truth for both the controller's result buffer and any caller-side buffers.
Definition at line 137 of file IWifiController.h.
Referenced by host_wifi_scan_results().
The documentation for this class was generated from the following file: