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

"Concurrent" scanning and advertising. Problem in ble connection.

In my application I have to advertise and scan, I know these two actions are multiplexed and there are no problems when there is no BLE connection (I use s130, sdk 9.0.0). However when I am connected to my smartphone and I want to change some characteristic using: err = sd_ble_gatts_hvx(p_bws->conn_handle, &hvx_params); I got an BLE_ERROR_GATTS_SYS_ATTR_MISSING error, however when I do not initialize scanning in my application I do not get this error and my BLE communication works fine.

My first question is, why do I need to call sd_ble_gatts_sys_attr_set() when both scanning and advertising is initialized and do not need to call it when scanning is off?

The second one is, what parameters should I call sd_ble_gatts_sys_attr_set() with, when I am not going to do any bonding in my application ?

Parents Reply Children
No Data
Related