This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Return error code at connection

Hello,

I would like to return a specific error when a device connects to my NRF52 (by bluetooth) when for example the range of mac address is wrong to me... (or something else).

Do you know if it is technically possible to return an error (BLE_GATT_STATUS_UNKNOWN or even a specific error different from BLE_GATT_STATUS_SUCCESS) at connection ?

Thank you for your help