Skip to content

Commit e959f97

Browse files
committed
WiFi config(): warning for legacy idioms (esp8266#9031 (comment))
1 parent cb9734c commit e959f97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class ESP8266WiFiSTAClass: public LwipIntf {
4949

5050
// two and one parameter version. 2nd parameter is DNS like in Arduino
5151
// IPv4 only
52+
[[deprecated("It is discouraged to use this 1 or 2 parameters network configuration legacy function config(ip[,dns]) because it sets the router (and ommited dns) to an arbitrary address")]]
5253
bool config(IPAddress local_ip, IPAddress dns = INADDR_ANY);
5354

5455
bool setDNS(IPAddress dns1, IPAddress dns2 = INADDR_ANY);

0 commit comments

Comments
 (0)