We have a fully-working java programme which can connect to another computer and can send messages from this(both sides run java and we used SPP Server and Client), however when trying to connect to the NXT Brick and send a message via bluetooth we are able to pair with the brick and we can send a message but we have no idea if the NXT receives it.

When we tried to use Java SPPClient on the computer(we provide the ServerURL of NXT to java programme) to send the message to NXT Brick running the RobotC, it does't work. On java side, the error is given:

"Failed to connect; [10064] A socket operation failed because the destination host was down." Is the error we receive on Java.

Using robotc the brick is waiting for a message to be sent and it is awaiting 3 integers to help the robot move.

  • that sounds like a firewall problem. Is the java program trying to access the internet? – tuskiomi Jul 20 '16 at 15:21

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.