I want to connect the peripheral by using an identifier. Can I do it?
centralManager?.connect(peripheral, options: nil)
I am scanning devices in one
ViewController and Connecting it in another
Below is my requirement:
When I scanned device and saved the next time the device that can appear in home screen and directly connected.
So for this, I use singleton class to access peripheral data from one view to another view. But it always initializes to empty.
So I want to connect peripheral by using an identifier.
I don't know where we store
[CBPeripheral] and access it when needed.