Syntax
virtual int endPacket();
ContentsIndex
PreviousUpNext
LUDP::endPacket Method
LUDP Class | Example
Syntax
virtual int endPacket();
Description

Send the datagram after calling beginPacket() and write().

Returns

1 if succeeded, 0 if failed. 

 

Example
    udp.begin(1234);   // start UDP on port 1234
    udp.beginPacket("www.somewebsite.com", 56);  // start a packet sending to www.somewebsite.com on port 56.
    udp.write(0);  // write a byte of value 0 to the packet
    udp.endPacket();  // actually send the packet.
File

LUdp.h

Class