I'm trying to understand the startWirelessControllerDiscovery method from GCController.
I'm able to pair a Playstation controller in Settings.app > Bluetooth. It works perfectly in my game afterward.
But I'm also trying to let the user perform the pairing directly from the game. The controller is unknown to the device at this point. I'm executing startWirelessControllerDiscovery in the code but nothing happens. The controller is in "pairing mode" but isn't connecting/pairing. My expectation would be that the controller connects to the device in the same way as manually selecting it from settings.
If startWirelessControllerDiscovery isn't supporting this scenario then what is the intended purpose?
Post
Replies
Boosts
Views
Activity
We're wondering if there is documentation available regarding when a device is considered "disconnected".
We have an app that communicates with a custom hardware device (Nordic chip) over BLE. Everything usually works great as long as the iOS device and the hardware device are in close proximity.
When the connection is "bad" (i.e. blocked by a human body or a couple of feet of distance) the app occasionally receives the didDisconnectPeripheral event from CBCentralManager.
How does iOS determine when to disconnect a device? Are there any connection parameters that could be tweaked?