Page 1 of 1

Turning Bluetooth on, on the NXT through an NXC program

Posted: 22 Mar 2012, 10:00
by ricardocrl
Hey everyone,

I am wondering if it is possible, using NXC, to turn on the bluetooth programmatically, instead of manually through the FW menu. Any ideas?

I see I can check the state, using BluetoothState(), but not setting the state.

Why? Well, sometimes for "no reason", when I start the NXT, the Bluetooth is off. I actually wonder why does it turn off by itself. It is very rare, but it happens.

Thank you!

Re: Turning Bluetooth on, on the NXT through an NXC program

Posted: 22 Mar 2012, 13:12
by pepijndevos
I looked through the docs, as I'm sure I did this in pbLua, but I can't find it fro NBC. I hope someone else does.

Re: Turning Bluetooth on, on the NXT through an NXC program

Posted: 22 Mar 2012, 13:25
by tabbycatrobots
Will the command SysCommBTOnOff do what you need?

Re: Turning Bluetooth on, on the NXT through an NXC program

Posted: 22 Mar 2012, 16:38
by ricardocrl
Awesome!! That's it! Bad search I did.

Thank you very much! :-)

Cheers!