Skip to content

Commit 0a6a371

Browse files
committed
Correct beginMulticast method name
1 parent 489a70a commit 0a6a371

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ connected KEYWORD2
2828
begin KEYWORD2
2929
beginProvision KEYWORD2
3030
beginOrProvision KEYWORD2
31-
beginMulti KEYWORD2
31+
beginMulticast KEYWORD2
3232
disconnect KEYWORD2
3333
macAddress KEYWORD2
3434
localIP KEYWORD2

src/WiFiMDNSResponder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool WiFiMDNSResponder::begin(const char* _name, uint32_t _ttlSeconds)
106106

107107
// Open the MDNS UDP listening socket on port 5353 with multicast address
108108
// 224.0.0.251 (0xE00000FB)
109-
if (!udpSocket.beginMulti(IPAddress(224, 0, 0, 251), 5353)) {
109+
if (!udpSocket.beginMulticast(IPAddress(224, 0, 0, 251), 5353)) {
110110
return false;
111111
}
112112

src/WiFiUdp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ uint8_t WiFiUDP::begin(uint16_t port)
9494
return 1;
9595
}
9696

97-
uint8_t WiFiUDP::beginMulti(IPAddress ip, uint16_t port)
97+
uint8_t WiFiUDP::beginMulticast(IPAddress ip, uint16_t port)
9898
{
9999
uint32_t multiIp = ip;
100100

src/WiFiUdp.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class WiFiUDP : public UDP {
4040
public:
4141
WiFiUDP(); // Constructor
4242
virtual uint8_t begin(uint16_t); // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
43-
virtual uint8_t beginMulti(IPAddress, uint16_t); // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 if there are no sockets available to use
43+
virtual uint8_t beginMulticast(IPAddress, uint16_t); // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 if there are no sockets available to use
44+
virtual uint8_t beginMulti(IPAddress ip, uint16_t port) { return beginMulticast(ip, port); }
4445
virtual void stop(); // Finish with the UDP socket
4546

4647
// Sending UDP packets

0 commit comments

Comments
 (0)