lwIP netconn: netif_addr, what is the correct variable
Posted: Fri Jun 15, 2018 1:18 pm
Hello,
I would like to use the netconn api in lwIP to use multicast.
There is the function "netconn_join_leave_group" which has the parameter "netif_addr" which is described as "the IP address of the network interface on which to send the imgp message".
Is there a macro I can use for this parameter?
As my ESP32 gets an IP via DHCP the IP might change.
So how can I make sure that always the correct IP is used?
Thank you very much.
I would like to use the netconn api in lwIP to use multicast.
There is the function "netconn_join_leave_group" which has the parameter "netif_addr" which is described as "the IP address of the network interface on which to send the imgp message".
Is there a macro I can use for this parameter?
As my ESP32 gets an IP via DHCP the IP might change.
So how can I make sure that always the correct IP is used?
Thank you very much.