mn_wifi_ap.hpp
Go to the documentation of this file.
86 int set_ipinfo(const ip4_adress_t& local_ip, const ip4_adress_t& gateway, const ip4_adress_t& subnet);
189 virtual void on_wifi_event(esp_event_base_t event_base, int32_t event_id, void* event_data) override;
static bool start()
Initialize the underlying TCP/IP stack.
Definition: mn_basic_netif.cpp:139
Definition: mn_network_device.hpp:30
virtual const char * get_hostname()
Get the hostname.
Definition: mn_wifi_ap.cpp:164
virtual void on_probereqrec(esp_event_base_t event_base, void *event_data)
Call on WIFI_EVENT_AP_PROBEREQRECVED event.
Definition: mn_wifi_ap.hpp:210
net::basic_ip4_address ip4_adress_t
Definition: mn_wifi_ap.hpp:38
virtual uint32_t get_connected()
Get the number of connected stations.
Definition: mn_wifi_ap.cpp:194
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.
Definition: mn_wifi_ap.hpp:92
virtual ip4_adress_t get_ip()
Get Tte IPv4 address of the WiFi AP device.
Definition: mn_wifi_ap.cpp:217
virtual ip4_adress_t get_broadcast()
Get the broadcast IP address,.
Definition: mn_wifi_ap.cpp:227
virtual void on_wifi_event(esp_event_base_t event_base, int32_t event_id, void *event_data) override
The basic wife event handler.
Definition: mn_wifi_ap.cpp:267
~basic_wifi_ap()
Basic destructor, stopped the Wifi.
Definition: mn_wifi_ap.hpp:50
virtual ip4_adress_t get_gateway()
Get the gateway IP address,.
Definition: mn_wifi_ap.cpp:232
virtual void on_start(esp_event_base_t event_base, void *event_data)
Call on WIFI_EVENT_AP_START event.
Definition: mn_wifi_ap.hpp:194
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.
Definition: mn_wifi_ap.cpp:114
virtual ip4_adress_t get_netmask()
Get the netmask IP address,.
Definition: mn_wifi_ap.cpp:242
virtual void on_connected(esp_event_base_t event_base, void *event_data)
Call on WIFI_EVENT_AP_STACONNECTED event.
Definition: mn_wifi_ap.hpp:202
bool is_stream_support() override
Definition: mn_wifi_ap.hpp:176
basic_wifi_ap(const basic_wifi_ap &other)=delete
basic_wifi_ap()
Construct the wifi ap object.
Definition: mn_wifi_ap.hpp:45
tcpip_adapter_ip_info_t get_ip_infos()
Get interface's IP address information.
Definition: mn_wifi_ap.cpp:207
virtual bool set_hostname(const char *hostname)
Set the hostname, only work when wifi are started.
Definition: mn_wifi_ap.cpp:175
virtual void on_stop(esp_event_base_t event_base, void *event_data)
Call on WIFI_EVENT_AP_STOP event.
Definition: mn_wifi_ap.hpp:198
virtual const char * get_mac()
Get the MAC of the WiFi AP device as string.
Definition: mn_wifi_ap.cpp:252
virtual void on_disconnected(esp_event_base_t event_base, void *event_data)
Call on WIFI_EVENT_AP_STADISCONNECTED event.
Definition: mn_wifi_ap.hpp:206
basic_wifi_ap & operator=(const basic_wifi_ap &other)=delete
wifi_mode_t get_mode(void)
Get current operating mode of WiFi.
Definition: mn_basic_wifi_net_if.cpp:63
basic_wifi(const interface_t &type)
Construct this object.
Definition: mn_wifi.cpp:37
This class represents an internet (IP) version 6 host address.
Definition: mn_basic_ip4_address.hpp:38
This file is part of the Mini Thread Library (https://github.com/RoseLeBlood/MiniThread ).
Definition: mn_allocator_typetraits.hpp:25