In my application, I need to read/write values from more than one peripherals that have the same service and characteristics UUIDs. Each peripheral has many characteristics, out of which value of one particular characteristic is used to uniquely identify the peripheral. What I am trying to figure out is
- How do I connect to all the peripherals that have the same service uuids.
- Is it possible to read the value of the characteristic used to uniquely identify the peripheral while reading the value of other characteristics, so that I can distinguish for which peripheral the characteristics values are updated.
CBPeripheral
passed to your delegate method. This object has an identifier property that you can use to uniquely identify that peripheral. When you get a callback to yourCBPeripheralDelegate
method with data, that sameCBPeripheral
instance will be passed to the delegate method, so you can determine which peripheral the data came from. – Paulw11