In iOS, it is possible for different apps to send data to the same characteristics in the same device by calling retrieveConnectedPeriphrals… Is there a way to identify the data sent by these apps from the GATT server/periphral side?
In iOS, it is possible for different apps to send data to the same characteristics in the same device by calling retrieveConnectedPeriphrals… Is there a way to identify the data sent by these apps from the GATT server/periphral side?
Hi Holonono,
I don't think there is a way the peripheral can detect if the BLE packets were sent by one app or the other. They both comes from same central device.
What you can do is to set a flag in the data of the packet you send, a write command for example. You can set the first byte to 1 meaning it's the command from app A, set it to 2 meaning it's from app B.
Hi Holonono,
I don't think there is a way the peripheral can detect if the BLE packets were sent by one app or the other. They both comes from same central device.
What you can do is to set a flag in the data of the packet you send, a write command for example. You can set the first byte to 1 meaning it's the command from app A, set it to 2 meaning it's from app B.