Error on Wifi.config manual on the website ?

Hi , i thing there is an error on this page

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 :

Ip , Gateway , Subnet , DNS

there is no way that i know to change the order for the different adresses.

so the RIGHT order is :

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.


Are you using ESP8266?