Hi, I modified the ble_app_hrs sample application with one custom service which includes, some custom characteristics (128 bit uuid), Now the problem i am facing is, i am not getting the correct handle values which are shown in master control panel, i.e the default handle for the device name is 3, i can also see it in master control panel, but when i check it inside my application i am not getting the same handle value. Below is my code where i am checking the device name handle value.
static void on_write(ble_evt_t * p_ble_evt) {
ble_gatts_evt_write_t * p_evt_write = &p_ble_evt->evt.gatts_evt.params.write;
if(p_evt_write->handle == 3)
{
sd_nvic_SystemReset();
}
My application is not resetting, when i write something on device name.
The handle value i am getting for all the write event is 0xB001. Please tell me how to solve this.
Regards, Balaji