Explorar el Código

Support generic UDP beginMulticast()

main
PaulStoffregen hace 6 años
padre
commit
e1676586f1
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. +1
    -0
      teensy/Udp.h
  2. +1
    -0
      teensy3/Udp.h

+ 1
- 0
teensy/Udp.h Ver fichero

@@ -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 Ver fichero

@@ -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

Cargando…
Cancelar
Guardar