From 3ec2779b725e480786a141091298c8c8ce4f883b Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Tue, 3 Jan 2017 13:42:24 -0500 Subject: [PATCH] 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: https://github.com/arduino/ArduinoCore-avr/commit/5a05bf01f4ffbe16670eb8d713688d059c3bd084 Author: Sandeep Mistry Signed-off-by: Philippe Coval --- cores/arduino/Udp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/arduino/Udp.h b/cores/arduino/Udp.h index dc5644b9df..89f31c676d 100644 --- a/cores/arduino/Udp.h +++ b/cores/arduino/Udp.h @@ -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