apidocs / com.nimmsta.core.android.bluetooth / DeviceBluetoothService / startMonitoringRSSI

startMonitoringRSSI

fun startMonitoringRSSI(): Task<Unit>

We monitor the RSSI so that we detect disconnects faster, it works like this: We check the RSSI every RSSI_INVERVAL, e.g 1 second. If RSSI does not change within the interval and is below MIN_DISCONNECT_RSSI, we check in a 30th of the interval again, until the RSSI_TIMEOUT and RSSI_CHECKS limit is reached. Then we disconnect automatically.

Attention: This is an experimental feature and needs further testing

Internal
This is an experimental feature and needs further testing