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

How to interact with connected devices through the device manger

Hello, I started implementing a project with the device manager. I am using the S120 as central. I am able to connect to 3 peripherals at the same time (also nordic nrf51822). So in general, the device manger does its work. But now, I can not find the information how to interact (write a characteristic) with one specific peripheral/peer. I believe, writing a characteristic will be done with sd_ble_gattc_write(...). But where to get the right handle?

Also I don`t know, how to disconnect from a specific peer. Must these tasks be done by the client handling? Or can that be done directly with the device manager.

Is there an existing example?

I also had a look to the device manager tutorial and it helped a lot when setting up the device manager. But the tasks I mentioned are not described.

Thanks for any help/hint/link.

Regards, BTprogrammer

Parents
  • I don't know what you have to do. I don't know what your application is. For a client to be able to access a characteristic value, descriptor++ on a server it needs to have the attribute handles of these. These are normally obtained by doing a service discovery. If you know the attribute handles, you could also hack it and hard code the them. Yes, there are several examples, in \examples\ble_central

Reply
  • I don't know what you have to do. I don't know what your application is. For a client to be able to access a characteristic value, descriptor++ on a server it needs to have the attribute handles of these. These are normally obtained by doing a service discovery. If you know the attribute handles, you could also hack it and hard code the them. Yes, there are several examples, in \examples\ble_central

Children
No Data
Related