in PoC/android/app/src/main/java/com/epam/crowdresitance/bluetooth/BtScan.kt [146:161]
override fun onCharacteristicRead(
gatt: BluetoothGatt?,
characteristic: BluetoothGattCharacteristic?,
status: Int
) {
super.onCharacteristicRead(gatt, characteristic, status)
val charString = characteristic?.value?.toString(Charsets.UTF_8)
if (charString != null) {
macAdresses.add(btDevice.macAddress)
btDevice.userId = charString
BtDiscoveredDevices.add(btDevice)
if (btDevice.macAddress != issuedMac) {
gatt?.close()
}
}
}