1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-13 13:01:55 +03:00

WiFi config(): warning for legacy idioms (#9050)

This commit is contained in:
david gauchard
2023-12-12 00:57:57 +01:00
committed by GitHub
parent cb9734c97d
commit d5eb265f78
3 changed files with 14 additions and 8 deletions

View File

@ -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]) as chosen defaults may not match the local network configuration")]]
bool config(IPAddress local_ip, IPAddress dns = INADDR_ANY);
bool setDNS(IPAddress dns1, IPAddress dns2 = INADDR_ANY);