Page 1 of 1

resolve mac into ip

Posted: Sun Dec 10, 2023 3:18 pm
by Lagunax
Hi all!
in old versions of idf there was function tcpip_adapter_get_sta_list that returns list of IPs of connected stations.
How can i get this list, or resolve from macs (gotten by esp_wifi_ap_get_sta_list) in latest idf (5.*.*) with esp-netif or other?

Re: resolve mac into ip [closed]

Posted: Wed Dec 13, 2023 4:23 pm
by Lagunax
answering myself.... found it:

Code: Select all

#include <esp_wifi_ap_get_sta_list.h>

....
esp_err_t esp_wifi_ap_get_sta_list_with_ip(const wifi_sta_list_t *wifi_sta_list, wifi_sta_mac_ip_list_t *wifi_sta_ip_mac_list);