examples: common connect component to use both interfaces at once

* Original commit: espressif/esp-idf@06711c7c36
This commit is contained in:
David Cermak
2020-04-23 16:23:46 +02:00
committed by suren-gabrielyan-espressif
parent 3319844745
commit 54f5c6f29c
3 changed files with 170 additions and 62 deletions

View File

@ -57,8 +57,22 @@ esp_err_t example_configure_stdin_stdout(void);
/**
* @brief Returns esp-netif pointer created by example_connect()
*
* @note If multiple interfaces active at once, this API return NULL
* In that case the get_example_netif_from_desc() should be used
* to get esp-netif pointer based on interface description
*/
esp_netif_t *get_example_netif(void);
/**
* @brief Returns esp-netif pointer created by example_connect() described by
* the supplied desc field
*
* @param desc Textual interface of created network interface, for example "sta"
* indicate default WiFi station, "eth" default Ethernet interface.
*
*/
esp_netif_t *get_example_netif_from_desc(const char *desc);
#ifdef __cplusplus
}
#endif