Sure
On the robot.
Code:
*snip*
client = scn.acceptAndOpen();
reader = new BufferedReader(new InputStreamReader(client.openInputStream()));
*snip*
char[] data = reader.readLine().toCharArray();
for(lcv = 0; lcv < dat.length; lcv++)
{
System.out.print((int)data[lcv] + " ");
}
System.out.println();
On the computer
Code:
*snip*
out = new BufferedWriter(new OutputStreamWriter(out.getOutputStream()));
*snip*
out.write(new char[]{1,2,3,100,150,180});
out.write("\n");
out.flush();
So I am sending 1 2 3 100 150 180
robot reports it is receiving 1 2 3 100 194 150 194 180
Even larger numbers have other strangeness with them. Sent a 200 and the robot received a 131 199