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
  • Yes, I have modified the ble_app_template. I now have two service uuids with only one active at boot. I am attaching the same characteristic to either service. I can see the service and characteristic with LightBlue on iOS. With my own iOS app, I am sure that I am writing to the value as I can change it's properties and I see those changes in my iOS App. I am testing this by using my iOS and debugging the code on the 52840 with Eclipse.

Reply
  • Yes, I have modified the ble_app_template. I now have two service uuids with only one active at boot. I am attaching the same characteristic to either service. I can see the service and characteristic with LightBlue on iOS. With my own iOS app, I am sure that I am writing to the value as I can change it's properties and I see those changes in my iOS App. I am testing this by using my iOS and debugging the code on the 52840 with Eclipse.

Children
No Data
Related