We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 727d4bd commit f5c6f3bCopy full SHA for f5c6f3b
libraries/WiFi/src/WiFiUdp.cpp
@@ -68,6 +68,7 @@ int arduino::WiFiUDP::beginPacket(IPAddress ip, uint16_t port) {
68
69
int arduino::WiFiUDP::beginPacket(const char *host, uint16_t port) {
70
_host = SocketAddress(host, port);
71
+ WiFi.getNetwork()->gethostbyname(host, &_host);
72
//If IP is null and port is 0 the initialization failed
73
return (_host.get_ip_address() == nullptr && _host.get_port() == 0) ? 0 : 1;
74
}
0 commit comments