Skip to content

Commit

Permalink
udp: Add beginMulticast method
Browse files Browse the repository at this point in the history
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>
URL-stm32duino: stm32duino#401
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Jan 4, 2019
1 parent 15b5b8a commit 0d53f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cores/arduino/Udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
class UDP : public Stream {

public:
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
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
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
virtual void stop() =0; // Finish with the UDP socket

// Sending UDP packets
Expand Down

0 comments on commit 0d53f3b

Please sign in to comment.