Skip to content

Commit e2bebd6

Browse files
committed
WiFi.setHostname as alias for void hostname(name)
for WiFiNINA API compatibility
1 parent 04f088b commit e2bebd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/WiFi101.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ class WiFiClass
123123
void config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway);
124124
void config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway, IPAddress subnet);
125125

126-
void hostname(const char* name);
126+
void hostname(const char* name);
127+
void setHostname(const char* name) {hostname(name);}
127128

128129
void disconnect();
129130
void end();

0 commit comments

Comments
 (0)