Go Down

Topic: Error on Wifi.config manual on the website ? (Read 269 times) previous topic - next topic

tfoutfou

Hi , i thing there is an error on this page

https://www.arduino.cc/en/Reference/WiFiConfig

Quote
WiFi.config(ip);
WiFi.config(ip, dns);
WiFi.config(ip, dns, gateway);
WiFi.config(ip, dns, gateway, subnet);
After many test and struggle i find out that the correct order for the options are :

Quote
Ip , Gateway , Subnet , DNS
there is no way that i know to change the order for the different adresses.

so the RIGHT order is :

Quote
WiFi.config(ip);
WiFi.config(ip, gateway);
WiFi.config(ip, gateway, subnet);
WiFi.config(ip, gateway, subnet, dns);
I also found that you cant declare a DNS if you have not filled a subnet before  , wich is logic because it is the last parameter

it would be nice for others if the changes can be made.


Thanks


Go Up