25 bool send(uint8_t *data,
int len) {
return send(
peer, data, len); }
30 int sent =
udp.write(data, len);
32 bool result =
udp.endPacket();
42 int packetSize =
udp.parsePacket();
46 char tmp[packetSize + 1] = {0};
47 int len =
udp.readBytes(tmp, len);
Abstract Interface for UDP API.
Definition: IUDPService.h:34
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
Access to UDP functionality: sending and receiving of data It seems that the UDP receive is not worki...
Definition: UDPService.h:16
RequestData receive()
Definition: UDPService.h:39
IPAddressAndPort peer
Definition: UDPService.h:57
bool send(uint8_t *data, int len)
Definition: UDPService.h:25
bool send(IPAddressAndPort addr, uint8_t *data, int len)
Definition: UDPService.h:27
bool begin(IPAddressAndPort addr)
Definition: UDPService.h:19
WiFiUDP udp
Definition: UDPService.h:56
Definition: Allocator.h:6
@ DlnaDebug
Definition: Logger.h:16
@ DlnaInfo
Definition: Logger.h:16
LoggerClass DlnaLogger
Definition: Logger.cpp:5
IP Adress including Port information.
Definition: IPAddressAndPort.h:13
int port
Definition: IPAddressAndPort.h:17
const char * toString()
Definition: IPAddressAndPort.h:19
IPAddress address
Definition: IPAddressAndPort.h:16
Provides information of the received UDP which consists of the (xml) data and the peer address and po...
Definition: IUDPService.h:23
IPAddressAndPort peer
Definition: IUDPService.h:25
Str data
Definition: IUDPService.h:24