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
  • So, I am now able to discover all characteristics from the peripheral. Also I am able to write a charactersitic. Surprisingly this works only after a complete discover. Even if I hardcode the characteristics handle!?

    By implementing this, I found out, that BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV is set to 3. In my application I have 19 characteristics in one service. Is it enough to change 3 to 19? I did this for the moment. And it seems to work. Does this have any side effects to the discovery module?

Reply
  • So, I am now able to discover all characteristics from the peripheral. Also I am able to write a charactersitic. Surprisingly this works only after a complete discover. Even if I hardcode the characteristics handle!?

    By implementing this, I found out, that BLE_DB_DISCOVERY_MAX_CHAR_PER_SRV is set to 3. In my application I have 19 characteristics in one service. Is it enough to change 3 to 19? I did this for the moment. And it seems to work. Does this have any side effects to the discovery module?

Children
No Data
Related