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

Bluetooth write problem

I started with the blu_app_template on a 52840. I have advertising working. I can see that from an iOS app. I can also see the details of the service. I see the characteristic on the iOS side. I am having a problem with writing data on the characteristic from an iOS app. I am hoping for a push in the right direction to debug this issue. The write comes to the device but the the handle is incorrect for the characteristic that was published. Same as the example code: p_ble_evt->evt.gatts_evt.params.write.handle will have the value 0x0d while the handle for the characteristic is 0x10, i.e. p_our_service->char_handles.value_handle. Any hints on what I might have done wrong or where I should look?

Thanks in advance.

Parents
  • Ok. Have you modified the ble_app_template? What app are you using on iOS? nRF Connect? Do you see the same behavior on Android? Are you sure that the write event you get are the write that you performed? How are you testing this? Calling sd_ble_uuid_vs_add() with the same base UUID shouldn't be a problem, the base will only be added to the SoftDevice once, and the same type reference will be returned in both cases.

Reply
  • Ok. Have you modified the ble_app_template? What app are you using on iOS? nRF Connect? Do you see the same behavior on Android? Are you sure that the write event you get are the write that you performed? How are you testing this? Calling sd_ble_uuid_vs_add() with the same base UUID shouldn't be a problem, the base will only be added to the SoftDevice once, and the same type reference will be returned in both cases.

Children
No Data
Related