Completed Preliminary MATLAB Test Scripts

This commit is contained in:
Chris Teubert
2014-11-28 17:08:41 -08:00
parent 2cb1d541d5
commit 4bfe4fe88d
21 changed files with 256 additions and 19 deletions

View File

@@ -42,16 +42,8 @@ function [ status ] = sendUDP( data, IP, port )
end
end
try
IP = InetAddress.getByName(IP);
packet = DatagramPacket(data, length(data), IP, port); %create packet
socket.send(packet);
catch err
status = 1;
disp(err)
end
IP = InetAddress.getByName(IP);
packet = DatagramPacket(data, length(data), IP, port); %create packet
socket.send(packet);
end