remodif sendDataUdp to sendData