From e959f97a8cabd91fd29cea0207390ef94360e180 Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Sat, 9 Dec 2023 00:32:56 +0100 Subject: [PATCH] WiFi config(): warning for legacy idioms (https://github.com/esp8266/Arduino/pull/9031#issuecomment-1839256347) --- libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h b/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h index 62461dbaec..ab576b3fbf 100644 --- a/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h +++ b/libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h @@ -49,6 +49,7 @@ class ESP8266WiFiSTAClass: public LwipIntf { // two and one parameter version. 2nd parameter is DNS like in Arduino // IPv4 only + [[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")]] bool config(IPAddress local_ip, IPAddress dns = INADDR_ANY); bool setDNS(IPAddress dns1, IPAddress dns2 = INADDR_ANY);