/* sim-driver: the radio is always up, on the channel from the strip's settings. */ #pragma once #include #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif typedef enum { WIFI_IF_STA = 0, WIFI_IF_AP = 1 } wifi_interface_t; typedef enum { WIFI_SECOND_CHAN_NONE = 0, WIFI_SECOND_CHAN_ABOVE, WIFI_SECOND_CHAN_BELOW } wifi_second_chan_t; typedef enum { WIFI_MODE_NULL = 0, WIFI_MODE_STA, WIFI_MODE_AP, WIFI_MODE_APSTA } wifi_mode_t; esp_err_t esp_wifi_get_channel(uint8_t *primary, wifi_second_chan_t *second); #ifdef __cplusplus } #endif