|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
Advanced ESP32 implementation of the unified BaseWifi class with ESP-IDF v5.5+ features. More...
#include "mcu/esp32/EspWifi.h"#include "esp_log.h"#include "esp_mac.h"#include "esp_system.h"#include "esp_timer.h"#include "freertos/FreeRTOS.h"#include "freertos/event_groups.h"#include "freertos/task.h"#include <algorithm>#include <cstring>Macros | |
| #define | WIFI_CONNECTED_BIT BIT0 |
| #define | WIFI_FAIL_BIT BIT1 |
| #define | WIFI_SCAN_DONE_BIT BIT2 |
| #define | WIFI_AP_STARTED_BIT BIT3 |
| #define | WIFI_SMARTCONFIG_BIT BIT4 |
Functions | |
| static hf_wifi_err_t | ensureDefaultNetifs () |
| Ensure default network interfaces are created only once globally. | |
| static wifi_mode_t | ConvertToEspMode (hf_wifi_mode_t mode) |
| Convert HardFOC WiFi mode to ESP-IDF WiFi mode. | |
| static hf_wifi_mode_t | ConvertFromEspMode (wifi_mode_t mode) |
| Convert ESP-IDF WiFi mode to HardFOC WiFi mode. | |
| static wifi_auth_mode_t | ConvertToEspAuthMode (hf_wifi_security_t security) |
| Convert HardFOC WiFi security to ESP-IDF auth mode. | |
| static hf_wifi_security_t | ConvertFromEspAuthMode (wifi_auth_mode_t auth_mode) |
| Convert ESP-IDF auth mode to HardFOC WiFi security. | |
Variables | |
| static const char * | TAG = "EspWifi" |
| static std::atomic< bool > | g_wifi_initialized {false} |
| static std::atomic< bool > | g_sta_netif_created {false} |
| static std::atomic< bool > | g_ap_netif_created {false} |
| static const EspWifiAdvancedConfig | DEFAULT_ADVANCED_CONFIG |
Advanced ESP32 implementation of the unified BaseWifi class with ESP-IDF v5.5+ features.
This file provides concrete implementations of the unified BaseWifi class for ESP32 microcontrollers with full ESP-IDF v5.5+ API support including WPA3 security, mesh networking, enterprise authentication, and advanced power management features.
| #define WIFI_AP_STARTED_BIT BIT3 |
| #define WIFI_CONNECTED_BIT BIT0 |
| #define WIFI_FAIL_BIT BIT1 |
| #define WIFI_SCAN_DONE_BIT BIT2 |
| #define WIFI_SMARTCONFIG_BIT BIT4 |
|
static |
Convert ESP-IDF auth mode to HardFOC WiFi security.
|
static |
Convert ESP-IDF WiFi mode to HardFOC WiFi mode.
|
static |
Convert HardFOC WiFi security to ESP-IDF auth mode.
|
static |
Convert HardFOC WiFi mode to ESP-IDF WiFi mode.
|
static |
Ensure default network interfaces are created only once globally.
|
static |
|
static |
|
static |
|
static |
|
static |