Skip to content

Commit f306fa7

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WiFi101.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class WiFiClass
124124
void config(IPAddress local_ip, IPAddress dns_server, IPAddress gateway, IPAddress subnet);
125125

126126
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)