mn_basic_netif.hpp
Go to the documentation of this file.
Wrapper class around esp-idf implementation of a esp-netif device.
Definition: mn_basic_netif.hpp:33
virtual bool create_default()=0
Creates an instance of new esp-netif object.
static bool start()
Initialize the underlying TCP/IP stack.
Definition: mn_basic_netif.cpp:139
esp_err_t get_mac(uint8_t mac[6])
Get the mac address for the interface instance.
Definition: mn_basic_netif.cpp:65
bool operator==(const basic_net_if &other)
Definition: mn_basic_netif.cpp:153
int get_impl_name(char name[6])
Get net interface name from network stack implementation.
Definition: mn_basic_netif.cpp:35
esp_netif_config_t * m_ifConfig
Definition: mn_basic_netif.hpp:223
bool set_hostname(const char *hostname)
Set the hostname of an interface.
Definition: mn_basic_netif.cpp:90
int get_impl_index()
Get net interface index from network stack implementation.
Definition: mn_basic_netif.cpp:43
bool is_up()
Test if supplied interface is up.
Definition: mn_basic_netif.cpp:28
virtual esp_netif_config_t * get_config()
Get the config of the esp-netif instance.
Definition: mn_basic_netif.hpp:171
int set_ip_infos(const ip_info_t &ip_info)
Set interface's IP address information.
Definition: mn_basic_netif.cpp:119
virtual esp_netif_t * get_netif()
Get the Handle to esp-netif instance.
Definition: mn_basic_netif.hpp:165
const char * get_hostname()
Get the hostname of an interface.
Definition: mn_basic_netif.cpp:80
basic_net_if & operator=(const basic_net_if &other)
Definition: mn_basic_netif.cpp:183
bool operator!=(const basic_net_if &other)
Definition: mn_basic_netif.cpp:161
int get_ip_infos(ip_info_t &ip_info)
Get interface's IP address information.
Definition: mn_basic_netif.cpp:97
basic_net_if(const basic_net_if &other)
Definition: mn_basic_netif.hpp:51
int set_mac(uint8_t mac[6])
Set the mac address for the interface instance.
Definition: mn_basic_netif.cpp:50
static bool stop()
Deinitialize the esp-netif component (and the underlying TCP/IP stack)
Definition: mn_basic_netif.cpp:146
Definition: mn_basic_netif.hpp:37
This class represents an internet (IP) version 6 host address.
Definition: mn_basic_ip4_address.hpp:38
Definition: mn_allocator_typetraits.hpp:25