roo_wifi
API Documentation for roo_wifi
Loading...
Searching...
No Matches
roo_wifi.h
Go to the documentation of this file.
1#pragma once
2
3/// Umbrella header for the roo_wifi module.
4///
5/// Provides Wi-Fi controller interfaces and platform adapters.
6
7#include "roo_scheduler.h"
10
11/// Must be included after `<Arduino.h>`.
12
13#ifdef ESP32
14
17
18namespace roo_wifi {
19
20/// ESP32 Wi-Fi controller convenience wrapper.
21class Esp32Wifi : public Controller {
22 public:
23 Esp32Wifi(roo_scheduler::Scheduler& scheduler)
24 : Controller(store_, interface_, scheduler), store_(), interface_() {}
25
26 void begin() {
27 store_.begin();
28 interface_.begin();
29 Controller::begin();
30 }
31
32 private:
33 ArduinoPreferencesStore store_;
34 Esp32ArduinoInterface interface_;
35};
36
37using Wifi = Esp32Wifi;
38
39} // namespace roo_wifi
40
41#endif