|
using | ip4_adress_t = net::basic_ip4_address |
|
using | auth_mode_t = typename base_type::auth_mode |
|
using | interface_t = typename base_type::wifi_interface_type |
|
enum class | auth_mode : int {
Open = WIFI_AUTH_OPEN
, WEP = WIFI_AUTH_WEP
, WPA_PSK = WIFI_AUTH_WPA_PSK
, WPA2_PSK = WIFI_AUTH_WPA2_PSK
,
WPA_WPA2_PSK = WIFI_AUTH_WPA_WPA2_PSK
, WPA2_ENTERPRISE = WIFI_AUTH_WPA2_ENTERPRISE
} |
| Authenticate modes. More...
|
|
enum class | wifi_interface_type { Station = 0
, Acesspoint = 1
} |
|
using | auth_mode_t = basic_wifi::auth_mode |
|
using | interface_t = basic_wifi::wifi_interface_type |
|
enum class | wifi_protocol : uint8_t {
none = 0
, b = WIFI_PROTOCOL_11B
, g = WIFI_PROTOCOL_11G
, n = WIFI_PROTOCOL_11N
,
bg = WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G
, bgn = WIFI_PROTOCOL_11B | WIFI_PROTOCOL_11G | WIFI_PROTOCOL_11N
, lr = WIFI_PROTOCOL_LR
} |
| list of the wifi protocols More...
|
|
using | ip4_address_t = net::basic_ip4_address |
|
using | ip_info_t = ip_info |
|
using | ip4_adress_t = net::basic_ip4_address |
|
|
| basic_wifi_ap () |
| Construct the wifi ap object. More...
|
|
| ~basic_wifi_ap () |
| Basic destructor, stopped the Wifi. More...
|
|
| basic_wifi_ap (const basic_wifi_ap &other)=delete |
|
basic_wifi_ap & | operator= (const basic_wifi_ap &other)=delete |
|
int | start (const char *ssid, auth_mode_t mode=auth_mode_t::Open, const char *passphrase="", bool storeCfgToFlash=false, bool ipv6=false, int channel=13, bool ssid_hidden=false, int max_connection=4) |
|
int | set_ipinfo (const ip4_adress_t &local_ip, const ip4_adress_t &gateway, const ip4_adress_t &subnet) |
| Set IPv4 infos, local ip, gateway and subnet. More...
|
|
int | get_ipinfo (ip4_adress_t &local_ip, ip4_adress_t &gateway, ip4_adress_t &subnet) override |
| Get IPv4 infos, local ip, gateway and subnet. More...
|
|
bool | stop (bool wifioff) override |
|
virtual ip4_adress_t | get_ip () |
| Get Tte IPv4 address of the WiFi AP device. More...
|
|
virtual ip4_adress_t | get_broadcast () |
| Get the broadcast IP address,. More...
|
|
virtual ip4_adress_t | get_gateway () |
| Get the gateway IP address,. More...
|
|
virtual ip4_adress_t | get_netmask () |
| Get the netmask IP address,. More...
|
|
virtual const char * | get_hostname () |
| Get the hostname. More...
|
|
virtual bool | set_hostname (const char *hostname) |
| Set the hostname, only work when wifi are started. More...
|
|
virtual uint8_t * | get_mac (uint8_t *mac) |
| Get the MAC of the WiFi AP device. More...
|
|
virtual const char * | get_mac () |
| Get the MAC of the WiFi AP device as string. More...
|
|
virtual uint32_t | get_connected () |
| Get the number of connected stations. More...
|
|
| operator uint32_t () |
|
| operator ip4_adress_t () |
|
| operator const char * () |
|
int | stop () override |
| Closes device. More...
|
|
int | open () override |
| Opens device. More...
|
|
bool | is_enable () override |
|
bool | is_stream_support () override |
|
| basic_wifi (const interface_t &type) |
| Construct this object. More...
|
|
virtual | ~basic_wifi () |
|
| basic_wifi_net_if (const esp_interface_t &type) noexcept |
| Construt. More...
|
|
virtual bool | create_default (void) |
| Set the hostname. More...
|
|
esp_interface_t & | get (void) |
| get the type of the interface More...
|
|
const char * | get_hostname (void) |
| Get interface hostname. More...
|
|
wifi_mode_t | get_mode (void) |
| Get current operating mode of WiFi. More...
|
|
const char * | get_ssid (char ssid[32]) |
| Get the ssid for the wifi. More...
|
|
wifi_protocol | get_protocol () |
| Get the current protocol bitmap. More...
|
|
wifi_ps_type_t | get_power_save_mode () |
| Get current WiFi power save type. More...
|
|
int | set_power_save_mode (const wifi_ps_type_t mode) |
| Set current WiFi power save type. More...
|
|
int | set_protocol (const wifi_protocol &prot=wifi_protocol::bgn) |
| Set protocol type of specified interface The default protocol is (WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N) More...
|
|
| basic_net_if () |
|
| basic_net_if (const basic_net_if &other) |
|
basic_net_if & | operator= (const basic_net_if &other) |
|
int | set_mac (uint8_t mac[6]) |
| Set the mac address for the interface instance. More...
|
|
esp_err_t | get_mac (uint8_t mac[6]) |
| Get the mac address for the interface instance. More...
|
|
const char * | get_hostname () |
| Get the hostname of an interface. More...
|
|
bool | set_hostname (const char *hostname) |
| Set the hostname of an interface. More...
|
|
bool | is_up () |
| Test if supplied interface is up. More...
|
|
int | get_impl_name (char name[6]) |
| Get net interface name from network stack implementation. More...
|
|
int | get_impl_index () |
| Get net interface index from network stack implementation. More...
|
|
virtual esp_netif_t * | get_netif () |
| Get the Handle to esp-netif instance. More...
|
|
virtual esp_netif_config_t * | get_config () |
| Get the config of the esp-netif instance. More...
|
|
int | get_ip_infos (ip_info_t &ip_info) |
| Get interface's IP address information. More...
|
|
int | set_ip_infos (const ip_info_t &ip_info) |
| Set interface's IP address information. More...
|
|
| operator bool () |
|
| operator esp_netif_t * () |
|
bool | operator== (const basic_net_if &other) |
|
bool | operator!= (const basic_net_if &other) |
|
bool | operator== (const esp_netif_t *other) |
|
bool | operator!= (const esp_netif_t *other) |
|
| basic_network_device () |
|
| basic_network_device (char prefix[8]) |
|
| basic_device (char prefix[8]) |
|
const char * | get_prefix () |
|
|
tcpip_adapter_ip_info_t | get_ip_infos () |
| Get interface's IP address information. More...
|
|
virtual void | on_wifi_event (esp_event_base_t event_base, int32_t event_id, void *event_data) override |
| The basic wife event handler. More...
|
|
virtual void | on_start (esp_event_base_t event_base, void *event_data) |
| Call on WIFI_EVENT_AP_START event. More...
|
|
virtual void | on_stop (esp_event_base_t event_base, void *event_data) |
| Call on WIFI_EVENT_AP_STOP event. More...
|
|
virtual void | on_connected (esp_event_base_t event_base, void *event_data) |
| Call on WIFI_EVENT_AP_STACONNECTED event. More...
|
|
virtual void | on_disconnected (esp_event_base_t event_base, void *event_data) |
| Call on WIFI_EVENT_AP_STADISCONNECTED event. More...
|
|
virtual void | on_probereqrec (esp_event_base_t event_base, void *event_data) |
| Call on WIFI_EVENT_AP_PROBEREQRECVED event. More...
|
|
int | startup (wifi_init_config_t *cfg, wifi_storage_t storage=WIFI_STORAGE_RAM) |
| start the wifi system and set the config. More...
|
|
int | unregist () |
| Deregister the wifi_event and ip_event. More...
|
|
virtual void | on_ip_event (esp_event_base_t event_base, int32_t event_id, void *event_data) |
|
Wifi AP class for the esp32.