Skip to content

Commit de215a6

Browse files
Add WiFi.getHostname() call
1 parent 0b390d7 commit de215a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libraries/WiFi/src/WiFiClass.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ void WiFiClass::setDNS(IPAddress dns_server1, IPAddress dns_server2) {
225225
void WiFiClass::setHostname(const char* name) {
226226
_wifi.setHostname(name);
227227
}
228+
const char *WiFiClass::getHostname() {
229+
return _wifi.getHostname();
230+
}
228231

229232
/*
230233
Disconnect from the network

libraries/WiFi/src/WiFiClass.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ class WiFiClass {
198198
199199
*/
200200
void setHostname(const char* name);
201+
const char *getHostname();
201202

202203
/*
203204
Disconnect from the network

0 commit comments

Comments
 (0)