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.
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.
I have been having some trouble making this work on Android. Should the autoconnect work on all Android phones? Because changing the variable doesn't really seem to make much of a change in my case.
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.