Controlling Bluetooth on 4631

Hi,
I want to be able to turn Bluetooth off and on depending on various external criteria.
I’ve searched the BLE library and I can’t see any way of turning it off.
Thanks
Alan

There is no function to switch off Bluetooth after it is initialized in the Arduino BSP. The only thing you can do is to set the power to the minimum and stop advertising with

Bluefruit.Advertising.stop();
Bluefruit.setTxPower(0);

In RUI3 the sequence would be

api.ble.advertise.stop();
api.ble.setting.txPower.set(0);

Thanks. I’ll give that a go. I found the Bluetooth is using about 2mA - roughly half my standing current.
Alan