|
Re: Reading characters from socket wierdness
I had at one point sent raw byte data as well. But the fact remains that when you use read() or readLine() the api returns 2 bytes of data for the larger values whereas the documentation says it returns an int between 0 and 255
. . . I will try again when I have access to the robot.
So essentially I need to select the "other" encoding. To help reduce ping-ponging code debugging. Does anyone know what encoding the cRio natively reads so I can set it in the OutputStreamWriter?
Last edited by drakesword : 03-14-2011 at 11:35 PM.
|