How can we perform a BLE GATTConnect to a peripheral device in iOS without scanning (already knowing the hardware address of the peripheral device)?
I am more familiar with Android, knowing the solution in Android, I am looking for how above can be done in iOS. The above can be performed using the BluetoothDevice object which can be created using a hardware address. Hardware address can be obtained in any way by the application, not just be scanning.
In iOS connectPeripheral method of CBCentralManager requires a CBPeripheral object to make a connection to the GATT server. Instance of the CBPeripheral is returned for each advertisement seen by the central device.
In our iOS application We know the hardware address (6 byte address in the advertisement) of peripheral and also know when the device is advertising ready to be connected.
Question: In iOS how do we connect with the peripheral without performing a scan knowing the hardware address of the peripheral?
Aucun commentaire:
Enregistrer un commentaire