Skip to content

Commit 35643bd

Browse files
authored
adds esp8266-style hostname setting (espressif#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

‎libraries/WiFi/src/WiFiSTA.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ class WiFiSTAClass
7474

7575
constchar * getHostname();
7676
boolsetHostname(constchar * hostname);
77+
boolhostname(const String& aHostname){returnsetHostname(aHostname.c_str())}
7778

7879
// STA WiFi info
7980
staticwl_status_tstatus();

0 commit comments

Comments
(0)