Im trying to send a message to NXT using sendPacket(byte b) (lejos api)...from pc...I did made a java program in pc that could communicate with nxt via bluetooth using RXTX..and I tried to send message to NXT, but NXT always read nothing..i just wondering why...My java program could connect NXT port via bluetooth but NXT coudlnt read any message...
COuld anyone here help me plz...
this is my message
byte[] array = {(byte) (4 & 0xFF),(byte)((4 & 0xFF00) >>,(byte)0x97};
public SerialWriter ( OutputStream out )
{
this.out = out;
}
public void run ()
{
try
{
//int c = 0;
//while ( c < s.length() )
//{
this.out.write(array);
this.out.flush();
this.out.close();
// c++;
//}
}
catch ( IOException e )
{
e.printStackTrace();
}
}
