Hi Devzone:
I have create our own board based on nrf5340dk_nrf5340, all are the same , just the pin configure and some perpherail devices on bus are not the same.
I configure bluetooth as follows,
#bluetooth
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_EXT_ADV_MAX_ADV_SET=3
CONFIG_BT_DEVICE_NAME_DYNAMIC=y
CONFIG_BT_DEVICE_APPEARANCE=833
#bluetooth Enable the NUS service
CONFIG_BT_NUS=y
#bluetooth Enable bonding
CONFIG_SETTINGS=y
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y
#bluetooth scan
CONFIG_BT_CENTRAL=y
I call bt_enable to enable bluetooth, and create adv, but not start adv.
err = bt_enable(bt_ready);
then when I call bt_disable, it always return error.
err = bt_disable();
How can I disable bluetooth?