Bluetooth LE Stack randomly disconnects from my Cadence sensor on Quest 2
My Unity app uses a BLE cadence sensor to control the player movement. It works well except that the Quest 2 will randomly disconnect from the cadence sensor. It happens one or more times within a half hour period.
The problem is not with the sensor because:
1. The sensor is only a few feet away.
2. I have an IOS app that has never disconnected from the cadence sensor.
3. I've tested three cadence sensors from different manufacturers and the results are the same.
My code does not initiate the disconnect. It comes from the Quest 2.
When it disconnects, the BluetoothGattCallback state is STATE_DISCONNECTED, and the status is GATT_SUCCESS.
This wouldn't be a problem if it could reconnect immediately, but it takes about 13 seconds to reconnect and re-subscribe to the cadence characteristic.
Is this random disconnection normal? Is there anything I can do to prevent this, or at least to minimize reconnect time?
For reference, my Quest 2 is running version 53. The version 54 update is not available on my system. My unity version is 2021.3.26f1. I've tried other Unity versions but the problem is still there.
