fuse wifi and ethernet component to a sngle network component.
enable both interfaces if configured from menuconfig Signed-off-by: Karl Osterseher <karli_o@gmx.at>
This commit is contained in:
21
components/network_interface/include/network_interface.h
Normal file
21
components/network_interface/include/network_interface.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* network_interface.h
|
||||
*
|
||||
* Created on: Jan 22, 2025
|
||||
* Author: karl
|
||||
*/
|
||||
|
||||
#ifndef COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_
|
||||
#define COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "esp_netif.h"
|
||||
|
||||
#define NETWORK_INTERFACE_DESC_STA "sta"
|
||||
#define NETWORK_INTERFACE_DESC_ETH "eth"
|
||||
|
||||
bool network_is_our_netif(const char *prefix, esp_netif_t *netif);
|
||||
void network_init(void);
|
||||
|
||||
#endif /* COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_ */
|
||||
Reference in New Issue
Block a user