Sfoglia il codice sorgente

Support generic UDP beginMulticast()

main
PaulStoffregen 6 anni fa
parent
commit
e1676586f1
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +1
    -0
      teensy/Udp.h
  2. +1
    -0
      teensy3/Udp.h

+ 1
- 0
teensy/Udp.h Vedi File

@@ -44,6 +44,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; }
virtual void stop() =0; // Finish with the UDP socket

// Sending UDP packets

+ 1
- 0
teensy3/Udp.h Vedi File

@@ -44,6 +44,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; }
virtual void stop() =0; // Finish with the UDP socket

// Sending UDP packets

Loading…
Annulla
Salva