Kotlin 获取蓝牙信号强度 (RSSI) 代码示例
fun getBluetoothRssi(): Int? { //获取蓝牙信号强度 if (myBluetoothService != null) { val bluetoothRssi: Int? = myBluetoothService.BluetoothQd() //蓝牙信号强度 蓝牙关闭的时候为空
return bluetoothRssi
}
return null
}
原文地址: http://www.cveoy.top/t/topic/MVy 著作权归作者所有。请勿转载和采集!