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:
@ -69,7 +69,10 @@ public:
|
||||
const IPAddress& arg3 = IPADDR_NONE, const IPAddress& dns2 = IPADDR_NONE);
|
||||
|
||||
// two and one parameter version. 2nd parameter is DNS like in Arduino. IPv4 only
|
||||
boolean config(IPAddress local_ip, IPAddress dns = INADDR_ANY);
|
||||
[[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")]] boolean
|
||||
config(IPAddress local_ip, IPAddress dns = INADDR_ANY);
|
||||
|
||||
// default mac-address is inferred from esp8266's STA interface
|
||||
boolean begin(const uint8_t* macAddress = nullptr, const uint16_t mtu = DEFAULT_MTU);
|
||||
|
Reference in New Issue
Block a user