resolve mac into ip

Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

resolve mac into ip

Postby Lagunax » Sun Dec 10, 2023 3:18 pm

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?

Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

Re: resolve mac into ip [closed]

Postby Lagunax » Wed Dec 13, 2023 4:23 pm

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);

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 241 guests