BLE Service Discovery Start log is printed twice even though it's called once

Hello there

In the project of the company I work for, we have a device working as a BLE central which connects to a nearby device and checks if that device is registered with our desiring Service. Hence we call the ble_db_discovery_start (ONLY ONCE). But when checking the logs in Debug mode I see that the log which indicates the Service Discovery Start is printed twice. I tracked the printed log and ended up with a variable named m_num_of_handlers_reg which all of a sudden comes to be 2 (ble_db_discovery.c file).

Can anyone tell me why this variable is suddenly 2 while there is only one handler registered and registered_handler_set function (which is the only function that increases the value of m_num_of_handlers_reg) is never called?

SDK version: 17.1.0

Softdevice version 6.1.1

Parents Reply Children
No Data
Related