iOS Apps that access the same BLE peripheral: How to distinguish?

后端 未结 1 1157
不知归路
不知归路 2021-01-23 19:49

I have to following scenario: My app requests and receives data from an BLE peripheral (a glucometer). It it possible that the user has another app (from another developer) inst

相关标签:
1条回答
  • 2021-01-23 20:32

    While the stack obviously knows which app a certain (read, write) response belongs to (because there may only be one pending request, and it knows who sent the request), there is no logical or sound reason why it should dispatch a notification to a single app (among those who have enabled notifications).

    Note that the GATT specification does not define "multiple gatt clients per link", there is only one client, so the peripheral doesn't even know there might be two apps talking to it. Hence when it sends a notification, it doesn't include a "target app" field.

    The feature of multiplexing multiple apps to the same GATT connection is something iOS and Android teams etc. came up with.

    0 讨论(0)
提交回复
热议问题