Skip to content

Commit 51bbae1

Browse files
committed
WiFi.hostname() back to String return type
1 parent 5198b79 commit 51bbae1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ IPAddress ESP8266WiFiSTAClass::dnsIP(uint8_t dns_no) {
467467
* Get ESP8266 station DHCP hostname
468468
* @return hostname
469469
*/
470-
const char* ESP8266WiFiSTAClass::hostname(void) {
470+
String ESP8266WiFiSTAClass::hostname(void) {
471471
return wifi_station_get_hostname();
472472
}
473473

Diff for: libraries/ESP8266WiFi/src/ESP8266WiFiSTA.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class ESP8266WiFiSTAClass {
6969
IPAddress gatewayIP();
7070
IPAddress dnsIP(uint8_t dns_no = 0);
7171

72-
const char* hostname();
72+
String hostname();
7373
bool hostname(String aHostname);
7474

7575
// STA WiFi info

0 commit comments

Comments
 (0)