How do I make my phone to auto connect to my nrf51822 device when it is within range ? I dont want to keep having to tap connect on my app. (android and IOS)
How do I make my phone to auto connect to my nrf51822 device when it is within range ? I dont want to keep having to tap connect on my app. (android and IOS)
Hi Delee,
On Android you can set autoconnect = true
when calling [BluetoothDevice->connectGatt.](developer.android.com/.../BluetoothDevice.html, boolean, android.bluetooth.BluetoothGattCallback))
There is no autoconnect option for iOS but what you can do is to call connectPeripheral() whenever you got disconnected from the device. The connectPeripheral command has no timeout.
Is it realy autoconnect ? I know that AUTOCONNECT can reconnect, but does it realy work without previous connection and scan ? I need connect device each 10minutes.
Is it realy autoconnect ? I know that AUTOCONNECT can reconnect, but does it realy work without previous connection and scan ? I need connect device each 10minutes.