I want to send a message with the pc to the NXT with your function void Bluetooth::send(unsigned char *buffer, unsigned int num_bytes) and I would like more details to use this for sending a message.
Sorry for my english, I’m french.
Everything looks ok – but the command that you are sending does not make sense to the NXT firmware. Also be sure to close the connection when you are done. If you go to the documentation you can see the source code for some of the things that I implemented. You can find the documentation here