4#include "roo_collections.h"
5#include "roo_scheduler.h"
16 std::function<void(arduino_event_id_t event, arduino_event_info_t info)>
22 std::function<
void(arduino_event_id_t event, arduino_event_info_t info)>
50 int max_count)
const override;
56 bool connect(
const std::string& ssid,
const std::string& passwd)
override;
68 void dispatchEvent(WiFiEvent_t event, WiFiEventInfo_t info);
71 roo_collections::FlatSmallHashSet<EventListener*> listeners_;
ESP32 Arduino Wi-Fi interface implementation.
bool startScan() override
Starts a scan.
void addEventListener(EventListener *listener) override
Registers an interface event listener.
bool getScanResults(std::vector< NetworkDetails > *list, int max_count) const override
Returns scan results, up to max_count entries.
bool connect(const std::string &ssid, const std::string &passwd) override
Connects to the specified SSID/password.
void removeEventListener(EventListener *listener) override
Unregisters an interface event listener.
bool getApInfo(NetworkDetails *info) const override
Returns current AP information; false if not connected.
ConnectionStatus getStatus() override
Returns the current connection status.
void disconnect() override
Disconnects from the current network.
bool scanCompleted() const override
Returns true if the scan has completed.
void begin()
Initializes the underlying Wi-Fi stack and registers callbacks.
Listener for interface events.
Abstraction for interacting with the hardware Wi-Fi interface.
ConnectionStatus
Wi-Fi connection status.
Detailed network information reported by the interface.
Linked list node storing a native ESP32 event callback.
Esp32ListenerListNode(std::function< void(arduino_event_id_t event, arduino_event_info_t info)> notify_fn)
Esp32ListenerListNode * prev
Esp32ListenerListNode * next
std::function< void(arduino_event_id_t event, arduino_event_info_t info)> notify_fn