Remove rssi/time-based recognition

This commit is contained in:
darken
2022-01-06 12:07:40 +01:00
parent 610e173639
commit 26ddf7fb53
@@ -110,22 +110,6 @@ class AppleFactory @Inject constructor(
}
}
if (identifier == null) {
knownDevs.values
.firstOrNull {
it.rssi > -60 && !it.isOlderThan(Duration.ofSeconds(10))
}
?.let {
log(TAG, DEBUG) { "recognizeDevice: Close match based on RSSI and timestamp." }
knownDevs[it.identifier] = it.copy(
scanResult = scanResult,
message = message,
)
identifier = it.identifier
}
}
if (identifier == null) {
log(TAG, VERBOSE) { "recognizeDevice: Mapping as new device" }
identifier = PodDevice.Id()