Open LseungHn opened 7 months ago
How do you get the watch's data information?
sorry for that, i'm not tested that bluetoothGatt method, but you could try to keep the watch conectivity by using Service in android. my recommendation is learn or think just a little bit about how bluetooth radio devices works first =). cheers
Android attempts to automatically reconnect when you enable the autoConnect option in BluetoothCallback.
I tried it in the following way in SDK.
val bluetoothGatt = VPOperateManager.getInstance().getConnectGatt(VPOperateManager.getCurrentDeviceAddress()) bluetoothGatt.device.connectGatt( VPOperateManager.mContext, autoConnect, bleConnectListener ) Enabling gatt's autoConnect option via the function will automatically reconnect, but all functions in the SDK will become unavailable. Please suggest how we can reconnect.
Mobile phones used for testing: Galaxy Note 8 Android version: 9 BuildGradle version : 7.4.0 Kotlin version : 1.7.0
sdk version : last version (Commits on Mar 26, 2024)