UDP
beginPacket()
Starts a connection to write UDP data to the remote connection.
// PROTOTYPES
virtual int beginPacket(IPAddress ip, uint16_t port);
virtual int beginPacket(const char* host, uint16_t port);
// SYNTAX
Udp.beginPacket(remoteIP, remotePort);
Parameters:
remoteIP: the IP address of the remote connection (4 bytes)remotePort: the port of the remote connection (int)
It returns nothing.