[6.8.0]
[fix] [blu add log]
This commit is contained in:
@@ -46,7 +46,7 @@ object BleManager : BaseBluetoothManager() {
|
||||
val bleDevItem = OchBluetoothGattCallback(result.device)
|
||||
if(!scanList.contains(bleDevItem)){
|
||||
scanList.add(bleDevItem)
|
||||
Log.d(TAG1, "添加item scanList个数:${scanList.size}")
|
||||
Log.d(TAG1, "添加item ${bleDevItem} scanList个数:${scanList.size}")
|
||||
}
|
||||
Log.d(TAG, "callbackType:${callbackType}_____result:${result}")
|
||||
}
|
||||
@@ -127,13 +127,13 @@ object BleManager : BaseBluetoothManager() {
|
||||
if(!scanList.contains(ochBluetoothGattCallback)){
|
||||
scanList.add(ochBluetoothGattCallback)
|
||||
}
|
||||
Log.d(TAG1, "超时返回 scanList个数:${scanList.size}___sendDataIntDev个数:${sendDataIntDev.size}")
|
||||
Log.d(TAG1, "超时返回 $ochBluetoothGattCallback scanList个数:${scanList.size}___sendDataIntDev个数:${sendDataIntDev.size}")
|
||||
}
|
||||
|
||||
fun removeFromScandAndWrite(ochBluetoothGattCallback: OchBluetoothGattCallback) {
|
||||
sendDataIntDev.remove(ochBluetoothGattCallback)
|
||||
scanList.remove(ochBluetoothGattCallback)
|
||||
Log.d(TAG1, "链接超次 scanList个数:${scanList.size}___sendDataIntDev个数:${sendDataIntDev.size}")
|
||||
Log.d(TAG1, "链接超次 $ochBluetoothGattCallback scanList个数:${scanList.size}___sendDataIntDev个数:${sendDataIntDev.size}")
|
||||
}
|
||||
|
||||
}
|
||||
@@ -278,4 +278,10 @@ class OchBluetoothGattCallback(device: BluetoothDevice) : BluetoothGattCallback(
|
||||
override fun hashCode(): Int {
|
||||
return _device.hashCode()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return "OchBluetoothGattCallback(_device=${device.name}_${device.address}_${device.type}_${device.uuids}_${device.alias})"
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user