|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <wifi.h>

Public Member Functions | |
| virtual | ~IWifiRadio ()=default |
| virtual Result< void > | init ()=0 |
| virtual void | enableStation ()=0 |
| virtual void | connectStation (const char *ssid, const char *password, bool powerSave)=0 |
| virtual WifiState | state () const =0 |
| Return the current station/radio state. | |
| virtual bool | copyLocalAddress (char *output, size_t capacity) const =0 |
| virtual Result< void > | startAccessPoint (const char *ssid, const char *password)=0 |
| virtual void | stopAccessPoint ()=0 |
| Stop access point mode. | |
| virtual bool | copyAccessPointAddress (char *output, size_t capacity) const =0 |
| Copy the access point address into a caller-owned buffer. | |
| virtual void | disconnect (bool powerOff)=0 |
Wi-Fi station and access-point radio control; networking protocols live above this interface.
This HAL deliberately exposes link control and addresses only. HTTP, NTP, CalDAV, and other sockets belong to services, which lets those protocols be tested without the vendor Wi-Fi stack and prevents board pin details leaking into application code.
|
virtualdefault |
|
pure virtual |
Start station association with provided credentials.
| 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. |
Implemented in ersa::test::MockWifi.
|
pure virtual |
Copy the access point address into a caller-owned buffer.
Implemented in ersa::test::MockWifi.
|
pure virtual |
Copy the station IPv4 address to caller storage; false means unavailable or truncated.
Implemented in ersa::test::MockWifi.
|
pure virtual |
Disconnect the active mode and optionally turn the radio off to save power.
Implemented in ersa::test::MockWifi.
|
pure virtual |
Configure station mode before issuing a connection request.
Implemented in ersa::test::MockWifi.
|
pure virtual |
Initialize the controller and release it to a known Off/Disconnected state.
Implemented in ersa::test::MockWifi.
|
pure virtual |
Start a local configuration AP.
Implemented in ersa::test::MockWifi.
|
pure virtual |
Return the current station/radio state.
Implemented in ersa::test::MockWifi.
|
pure virtual |
Stop access point mode.
Implemented in ersa::test::MockWifi.