Hi All,
I want to use DFU to update the firmware from master to peripheral over BLE , both master and peripheral are nrf52840. My purpose is that the master sends a command to make the peripheral enter bootloader.Therefore I need enable indication and write 0x01 to peripheral. "nrf connect" can do it.
But the problem is that I don't kown if the indication is enable on peripheral.I referred to other answers but failed becuase I can't excuess sd_ble_gatts_value_get() and sd_ble_gatts_hvx() correctly, my programs are below.
ble_hrs_c_handles_assign
when find the service and characteristics
connection handle : 0, characteristics handle:0x16, cccd handle:0x17
sd_ble_gatts_value_get() returned error 5
I have no idea where is wrong , please give me some advice
Thanks,
Steven