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

One peripheral many centrals

I am looking for a best solution to this scenario as in title:

  1. I read in some posts (eg. this post) that can use multiple ble service instances

  2. also in this post mentioned multiple GATT server instances can be used.

My concern mainly focus on that different centrals will have different data stream and status values, so these instances can not share same copy of values or status.

Also i checked the ble services implementation in SDK14, does not see much related to multi-instances ready. The multi-peripheral example does not give much detail on how multiple instances of services should be handled.

So the questions are:

  1. what are the best way to go, multiple service instances or multiple GATT servers?

  2. are there any examples for guide purpose?

Thank you.

Parents
  • these central devices connect to the peripheral at the same time. Each central device actually run the same copy of software, so their function and behavior are just the same, and the service/characteristic model defined are exactly the same. However, each central device may generate different data / status (for instance, they are operated by different users, or monitoring different area), which means different values/status for the same characteristic.

Reply
  • these central devices connect to the peripheral at the same time. Each central device actually run the same copy of software, so their function and behavior are just the same, and the service/characteristic model defined are exactly the same. However, each central device may generate different data / status (for instance, they are operated by different users, or monitoring different area), which means different values/status for the same characteristic.

Children
No Data
Related