示例#1
0
boolean sendPacket(UDPpacket& packet, WiFly& wifly)
{
	boolean ret;
	char buf[100];
	
	packet.data.toCharArray(buf, sizeof(buf));

	ret = wifly.sendto((const char *)buf, packet.ip, packet.port);
	wifly.flush();
	return ret;
}