We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5198b79 commit 51bbae1Copy full SHA for 51bbae1
libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp
@@ -467,7 +467,7 @@ IPAddress ESP8266WiFiSTAClass::dnsIP(uint8_t dns_no) {
467
* Get ESP8266 station DHCP hostname
468
* @return hostname
469
*/
470
-const char* ESP8266WiFiSTAClass::hostname(void) {
+String ESP8266WiFiSTAClass::hostname(void) {
471
return wifi_station_get_hostname();
472
}
473
libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h
@@ -69,7 +69,7 @@ class ESP8266WiFiSTAClass {
69
IPAddress gatewayIP();
70
IPAddress dnsIP(uint8_t dns_no = 0);
71
72
- const char* hostname();
+ String hostname();
73
bool hostname(String aHostname);
74
75
// STA WiFi info
0 commit comments