3#ifdef ARDUINO_ARCH_ESP32
10#define UDP_DEBUG_MSG 0
16class UDPStream :
public Stream
19 bool sendPackets =
false;
20 static uint8_t discoveryMsg[];
21 static uint8_t connectMsg[];
22 static uint8_t stopMsg[];
23 static uint8_t bindHeartbeat[];
24 static uint16_t bindPort;
25 IPAddress canvasIP = IPAddress(0, 0, 0, 0);
26 void handleUDP(UDPStream& udpStream, AsyncUDPPacket& packet);
29 uint32_t lastHeartbeat = 0;
32 bool begin(
const char* bindname,
Bind &bind);
33 bool begin(
Bind &bind,
const char* bindname);
34 size_t write(
const uint8_t *buffer,
size_t size)
override;
35 int available()
override {
return 0; }
36 int read()
override {
return 0; }
37 int peek()
override {
return 0; }
38 void flush()
override {}
39 size_t write(uint8_t)
override {
return 0; }
The Bind class provides a framework for creating interactive applications with BindCanvas.
Definition Bind.h:62