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"
8
#include "
roo_wifi/controller.h
"
9
#include "
roo_wifi/hal/interface.h
"
10
11
/// Must be included after `<Arduino.h>`.
12
13
#ifdef ESP32
14
15
#include "
roo_wifi/hal/esp32/arduino_preferences_store.h
"
16
#include "
roo_wifi/hal/esp32/esp32_arduino_interface.h
"
17
18
namespace
roo_wifi
{
19
20
/// ESP32 Wi-Fi controller convenience wrapper.
21
class
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
37
using
Wifi = Esp32Wifi;
38
39
}
// namespace roo_wifi
40
41
#endif
arduino_preferences_store.h
controller.h
esp32_arduino_interface.h
interface.h
roo_wifi
Definition
controller.cpp:3
temp_repos
roo_wifi
src
roo_wifi.h
Generated by
1.9.8