Closed vChavezB closed 1 year ago
Now I am able to disconnect the peripheral, forgot to add the correct reason in the disconnect API
BT_HCI_ERR_REMOTE_USER_TERM_CONN
Now I need to check why disabling the bluetooth peripheral with bt_disable does not return 0.
Edit: Seems the function is unsupported for the NRF52833 DK
Describe the bug I have been trying to disconnect a peripheral itself from a BLE Central but I get back error values from the api
bt_disable
andbt_conn_disconnect
Target platform: NRF52833 DK
To Reproduce
use project peripheral_hr
https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/bluetooth/peripheral_hr
and replace main.c with these modifications
https://github.com/vChavezB/peripheral_disconnect/blob/main/main.c
Build and flash
Expected behavior Peripheral should disconnect from Central
Logs and console output