mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-07 17:08:49 +00:00
esp_netif: Introduction of esp-netif component as a replacement of tcpip_adpter
- provides object oriented access to network intefaces - not limited to default netifs - more generic abstraction to network input output functions - event handler registration removed from component responsibility - backward compatibility layer for legacy tcpip_apapter APIs Closes IDF-39
This commit is contained in:
@@ -15,4 +15,32 @@
|
||||
#ifndef _ESP_WIFI_DEFAULT_H
|
||||
#define _ESP_WIFI_DEFAULT_H
|
||||
|
||||
#define ESP_NETIF_DRIVER_DEFAULT_WIFI_STA &_g_wifi_driver_sta_ifconfig
|
||||
#define ESP_NETIF_DRIVER_DEFAULT_WIFI_AP &_g_wifi_driver_ap_ifconfig
|
||||
|
||||
/**
|
||||
* @brief Sets default wifi event handlers for STA interface
|
||||
*
|
||||
* @param esp_netif instance of corresponding if object
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success, error returned from esp_event_handler_register if failed
|
||||
*/
|
||||
esp_err_t esp_wifi_set_default_wifi_sta_handlers(void *esp_netif);
|
||||
|
||||
/**
|
||||
* @brief Sets default wifi event handlers for STA interface
|
||||
*
|
||||
* @param esp_netif instance of corresponding if object
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success, error returned from esp_event_handler_register if failed
|
||||
*/
|
||||
esp_err_t esp_wifi_set_default_wifi_ap_handlers(void *esp_netif);
|
||||
|
||||
|
||||
extern const esp_netif_driver_ifconfig_t _g_wifi_driver_sta_ifconfig;
|
||||
extern const esp_netif_driver_ifconfig_t _g_wifi_driver_ap_ifconfig;
|
||||
|
||||
|
||||
#endif //_ESP_WIFI_DEFAULT_H
|
||||
|
||||
Reference in New Issue
Block a user