mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 00:45:22 +00:00
track rssi correctly
This commit is contained in:
@@ -280,6 +280,13 @@ class BluetoothMeshService(private val context: Context) {
|
||||
sendKeyExchangeToDevice()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onRSSIUpdated(deviceAddress: String, rssi: Int) {
|
||||
// Find the peer ID for this device address and update RSSI in PeerManager
|
||||
connectionManager.addressPeerMap[deviceAddress]?.let { peerID ->
|
||||
peerManager.updatePeerRSSI(peerID, rssi)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user