瀏覽代碼

Support generic UDP beginMulticast()

teensy4-core
PaulStoffregen 6 年之前
父節點
當前提交
e1676586f1
共有 2 個檔案被更改,包括 2 行新增0 行删除
  1. +1
    -0
      teensy/Udp.h
  2. +1
    -0
      teensy3/Udp.h

+ 1
- 0
teensy/Udp.h 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存