martin-ger / lwip_nat_arduino

lwip library with NAT feature for Arduino environment
59 stars 20 forks source link

Error in compiling #10

Open jakiki6 opened 4 years ago

jakiki6 commented 4 years ago

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*'

parisli0086 commented 4 years ago

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.