ContentsIndex
LUDP Class Members
LUDP Class | Legend
Members
Methods
Method 
Description 
Destructor. LUDP will close resources when it is destroyed. 
Number of remaining bytes in the current packet. Only meaningful after parsePacket() returns non-zero. 
Initializes UDP function, and start listening on specified local port. 
Start constructing an UDP datagrams to a remote host specified by IP address and port. Call write() subsequently to construct the datagram content. Then call endPacket() to actually send it. 
Start constructing an UDP datagrams to a remote host specified by URL address and port. Call write() subsequently to construct the datagram content. Then call endPacket() to actually send it. 
Send the datagram after calling beginPacket() and write(). 
Stop processing current packet. 
LUDP 
Constructor. LUDP cannot be instantiated directly. Use LWiFiUDP or LGPRSUDP instead. 
Check if there are incoming UDP datagrams. read() should be then used to actually read the data from packet. 
peek 
return the value of next available byte from current packet. The byte remains in the packet. 
read 
Read 1 byte from current packet after calling parsePacket(); 
read 
Read up to len bytes from current packet after calling parsePacket(); 
retrieve the sender IP address of the current packet started by parsePacket() 
retrieve the sender port of the current packet started by parsePacket() 
stop 
Stop listening for UDP datagram and uninitializes UDP module. 
Append 1 single byte into the datagram 
Append a buffer into the datagram.