Skip to content

Commit 334156c

Browse files
sandeepmistryfacchinm
authored andcommitted
Add virtual beginMulticast(...) stub to UDP class
1 parent 3eadceb commit 334156c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: api/Udp.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ namespace arduino {
4242
class UDP : public Stream {
4343

4444
public:
45-
virtual uint8_t begin(uint16_t) =0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
45+
virtual uint8_t begin(uint16_t) =0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
46+
virtual uint8_t beginMulticast(IPAddress, uint16_t) { return 0; } // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure
4647
virtual void stop() =0; // Finish with the UDP socket
4748

4849
// Sending UDP packets

0 commit comments

Comments
 (0)