#include <mock_wifi.h>
◆ connectStation()
| void ersa::test::MockWifi::connectStation |
( |
const char * |
ssid, |
|
|
const char * |
password, |
|
|
bool |
powerSave |
|
) |
| |
|
inlineoverridevirtual |
Start station association with provided credentials.
- Parameters
-
| ssid | Null-terminated network name. |
| password | Null-terminated passphrase, or empty for an open network. |
| powerSave | Keep radio modem sleep enabled when coexisting with BLE. Completion is asynchronous; poll state() instead of blocking this call. |
Implements ersa::hal::IWifiRadio.
◆ copyAccessPointAddress()
| bool ersa::test::MockWifi::copyAccessPointAddress |
( |
char * |
output, |
|
|
size_t |
capacity |
|
) |
| const |
|
inlineoverridevirtual |
◆ copyLocalAddress()
| bool ersa::test::MockWifi::copyLocalAddress |
( |
char * |
output, |
|
|
size_t |
capacity |
|
) |
| const |
|
inlineoverridevirtual |
Copy the station IPv4 address to caller storage; false means unavailable or truncated.
Implements ersa::hal::IWifiRadio.
◆ disconnect()
| void ersa::test::MockWifi::disconnect |
( |
bool |
powerOff | ) |
|
|
inlineoverridevirtual |
Disconnect the active mode and optionally turn the radio off to save power.
Implements ersa::hal::IWifiRadio.
◆ enableStation()
| void ersa::test::MockWifi::enableStation |
( |
| ) |
|
|
inlineoverridevirtual |
◆ init()
| Result< void > ersa::test::MockWifi::init |
( |
| ) |
|
|
inlineoverridevirtual |
Initialize the controller and release it to a known Off/Disconnected state.
Implements ersa::hal::IWifiRadio.
◆ startAccessPoint()
| Result< void > ersa::test::MockWifi::startAccessPoint |
( |
const char * |
ssid, |
|
|
const char * |
password |
|
) |
| |
|
inlineoverridevirtual |
Start a local configuration AP.
- Returns
- Error when credentials, radio state, or driver setup prevents AP startup.
Implements ersa::hal::IWifiRadio.
◆ state()
◆ stopAccessPoint()
| void ersa::test::MockWifi::stopAccessPoint |
( |
| ) |
|
|
inlineoverridevirtual |
◆ disconnectCalls
| uint32_t ersa::test::MockWifi::disconnectCalls {0} |
◆ enableCalls
| uint32_t ersa::test::MockWifi::enableCalls {0} |
◆ state_
The documentation for this class was generated from the following file: