Good afternoon,
I have been having issues discovering any service within a peer device which i have recently paired with. I am using Nordic SDK 15.2 and softdevice 6.1 on a nrf52840 development board. I am currently using the BLE_Central_multilink example and have modified it to pair with another device. The application pairs successfully however when attempting to discover the services the database discovery module returns BLE_DB_DISCOVERY_SRV_NOT_FOUND. I have attempted to add the service i want to discover before starting the database discovery process like this:
ret_code_t err_code = ble_db_discovery_init(db_disc_handler); APP_ERROR_CHECK(err_code); ble_uuid_t BATTERY_SERVICE; BATTERY_SERVICE.uuid = 0x108A; BATTERY_SERVICE.type = 2; uint32_t error_code = ble_db_discovery_evt_register(&BATTERY_SERVICE); APP_ERROR_CHECK(error_code);
The above code however does not work. I have noticed that when i try to discover the services of another ble application in the SDK the database discovery module returns BLE_DB_DISCOVERY_COMPLETE however i cannot replicate this with my peer device for some reason. I am using SEGGER studio on a windows machine. Any help would be very much appreciated.
thanks,
Gian
