choose sta or eth whichever is available. But eth has priority

This commit is contained in:
Karl Osterseher
2025-01-29 22:27:09 +01:00
Unverified
parent 6bec0e9469
commit d50f4be399
3 changed files with 79 additions and 71 deletions

View File

@@ -59,6 +59,10 @@ esp_netif_t *network_get_netif_from_desc(const char *desc) {
return esp_netif_find_if(netif_desc_matches_with, (void *)desc);
}
const char *network_get_ifkey(esp_netif_t *esp_netif) {
return esp_netif_get_ifkey(esp_netif);
}
bool network_is_netif_up(esp_netif_t *esp_netif) {
return esp_netif_is_netif_up(esp_netif);
}