From 3491ca7845b6dac3d69fa2279705275ad2af8758 Mon Sep 17 00:00:00 2001 From: sasaki takeru Date: Tue, 3 Nov 2020 03:26:50 +0900 Subject: [PATCH] Add virtual beginMulticast(...) stub to UDP class (#4061) https://github.com/arduino/ArduinoCore-sam/pull/6/files It is used here: https://github.com/arduino-libraries/ArduinoMDNS/blob/master/MDNS.cpp#L150 --- cores/esp32/Udp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/esp32/Udp.h b/cores/esp32/Udp.h index f47f83cc..fd79975e 100644 --- a/cores/esp32/Udp.h +++ b/cores/esp32/Udp.h @@ -43,6 +43,7 @@ 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 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