lwip_nat_arduino icon indicating copy to clipboard operation
lwip_nat_arduino copied to clipboard

Error in compiling

Open jakiki6 opened this issue 5 years ago • 1 comments

Hi, i have the following error:

WiFiNatRouter:66:39: error: invalid cast from type 'IPAddress' to type 'ip_addr*'

dhcps_set_DNS(WiFi.dnsIP());

                                   ^

exit status 1 invalid cast from type 'IPAddress' to type 'ip_addr*'

jakiki6 avatar Sep 13 '19 14:09 jakiki6

I meet this issue also. the problem is IPAddress is one int group. not one strcut. so if you add "strcut myespdns; "and use this myespdns for dhcps_set_DNS(myespdns); , your issue will be ok. but, will get another issue, dhcps_set_DNS is not yet defined.

parisli0086 avatar Nov 26 '19 06:11 parisli0086