Skip to content

Commit

Permalink
Add virtual beginMulticast(...) stub to UDP class
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepmistry authored and facchinm committed Feb 8, 2017
1 parent 045d83b commit 5a05bf0
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

1 comment on commit 5a05bf0

@rzr
Copy link

@rzr rzr commented on 5a05bf0 Jan 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me crosslink this to:
stm32duino/Arduino_Core_STM32#401

Please sign in to comment.