Put this code on project to enable(switch) Bluetooth service.

Code

bt.activateBluetooth();

Note

don’t forget to create Bluetooth component. Before write this code.