Skip to content

Commit 35643bd

Browse files
authored
adds esp8266-style hostname setting (#4938)
a little step to make esp8266 code compile without changes under esp32
1 parent 8dc70e0 commit 35643bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: libraries/WiFi/src/WiFiSTA.h

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class WiFiSTAClass
7474

7575
const char * getHostname();
7676
bool setHostname(const char * hostname);
77+
bool hostname(const String& aHostname) { return setHostname(aHostname.c_str()); }
7778

7879
// STA WiFi info
7980
static wl_status_t status();

0 commit comments

Comments
 (0)