1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-18 17:42:23 +03:00

dynamic WiFi.hostname("newname") (#5652)

* dynamic WiFi.hostname("newname")

* WiFi.hostname() back to String return type

* no silent hostname fix but proceed with debug message and returning false
This commit is contained in:
david gauchard
2019-01-24 21:13:20 +01:00
committed by Develo
parent ece93908a8
commit 7c5be91430
3 changed files with 76 additions and 28 deletions

View File

@@ -70,9 +70,8 @@ class ESP8266WiFiSTAClass {
IPAddress dnsIP(uint8_t dns_no = 0);
String hostname();
bool hostname(char* aHostname);
bool hostname(const String& aHostname) { return hostname(aHostname.c_str()); }
bool hostname(const char* aHostname);
bool hostname(const String& aHostname);
// STA WiFi info
wl_status_t status();