views:

18

answers:

0

I have a bluetooth connection with PC(bluesoleil) on COM8. And I want to send "hello" to this port.

Can I do it? Becouse when I do this:

OutputStream outs;
try{
        outs = socket.getOutputStream();
        byte[] byteArray = ("hello").getBytes();
        byteArray[byteArray.length-1]=0;
        outs.write(byteArray);
    Log.d("BT","String sended");
} catch(IOException){..}

nothing happens. And in Logcat I see "String sended", but in Portmon viewer on COM8 nothing happens.