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

Sign up
Appearance settings

Commit 334156c

Browse files
sandeepmistryfacchinm
authored andcommitted
Add virtual beginMulticast(...) stub to UDP class
1 parent 3eadceb commit 334156c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎api/Udp.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ namespace arduino {
4242
class UDP : public Stream {
4343

4444
public:
45-
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 begin(uint16_t) =0; // initialize, start listening on specified port. Returns 1 if successful, 0 if there are no sockets available to use
46+
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
4647
virtual void stop() =0; // Finish with the UDP socket
4748

4849
// Sending UDP packets

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /