Connecting.
How to delete all pairings
Connecting.
How to delete all pairings
thanks,But every time I get an error:Fatal error
There's a chance that you end up in an undefined state if you're doing connectable advertisements.
You can broadcast as much as you like.
My approach is to call ble_gap_disconnect first, then pm_peers_delete, but fatal errors still occur. What is the correct way? thank you.
Keyboard example
What function originally returns the error?
ble_advertising_start return:ERROR 18 And pm_device_identities_list_set return ERROR 12804
ble_advertising_start return:ERROR 18 And pm_device_identities_list_set return ERROR 12804
Error 0x3204 (12804dec) is defined in ble_gap.h:
BLE_ERROR_GAP_DEVICE_IDENTITIES_IN_USE /**< Attempt to modify the device identity list while already in use by another operation. */
From the pm_device_identities_list_set API docs:
BLE_ERROR_GAP_DEVICE_IDENTITIES_IN_USE | If the device identities list is in use and cannot be set. |
From ble_advertising_init API docs:
NRF_SUCCESS | If initialization was successful. |
NRF_ERROR_INVALID_PARAM | If the advertising configuration in p_init is invalid. |
Since the only two valid return codes are NRF_SUCCESS and NRF_ERROR_INVALID_PARAM a return code of 18dec must be a propogated return code from one of the functions inside ble_advertising_init. You will need to find the source of the error inside ble_advertising_init.