Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3ec2779

Browse filesBrowse files
committed
udp: Add beginMulticast method
This was needed to use ArduinoMNS it was tested on nucleo-f767zi [Sandeep Mistry] Add virtual beginMulticast(...) stub to UDP class Change-Id: I7cb92be0c88d350408ecc21f1662299b0721856a Origin: arduino/ArduinoCore-avr@5a05bf0 Author: Sandeep Mistry <s.mistry@arduino.cc> Signed-off-by: Philippe Coval <p.coval@samsung.com>
1 parent 5cc5415 commit 3ec2779
Copy full SHA for 3ec2779

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎cores/arduino/Udp.h

Copy file name to clipboardExpand all lines: cores/arduino/Udp.h
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
class UDP : public Stream {
4242

4343
public:
44-
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
44+
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 beginMulticast(IPAddress, uint16_t) { return 0; } // initialize, start listening on specified multicast IP address and port. Returns 1 if successful, 0 on failure
4546
virtual void stop() =0; // Finish with the UDP socket
4647

4748
// Sending UDP packets

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.