Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 35643bd

Browse filesBrowse 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
Copy full SHA for 35643bd

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎libraries/WiFi/src/WiFiSTA.h

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiSTA.h
+1Lines changed: 1 addition & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.