We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 807ed51 commit 22442f0Copy full SHA for 22442f0
cores/esp8266/LwipIntf.cpp
@@ -64,6 +64,15 @@ String LwipIntf::hostname(void)
64
return wifi_station_get_hostname();
65
}
66
67
+/**
68
+ Get ESP8266 station DHCP hostname
69
+ @return hostname
70
+*/
71
+const char* LwipIntf::getHostname(void)
72
+{
73
+ return wifi_station_get_hostname();
74
+}
75
+
76
/**
77
Set ESP8266 station DHCP hostname
78
@param aHostname max length:24
cores/esp8266/LwipIntf.h
@@ -34,6 +34,12 @@ class LwipIntf
34
return hostname(aHostname.c_str());
35
36
bool hostname(const char* aHostname);
37
+ // ESP32 API compatibility
38
+ bool setHostname(const char* aHostName)
39
+ {
40
+ return hostname(aHostName);
41
+ }
42
+ const char* getHostname();
43
44
protected:
45
0 commit comments