# tap.offBLEPeripheralConnectionStateChanged(function listener)

# 功能描述

移除当前对应外围设备被连接或断开连接事件的监听函数

# 参数

# function listener

onBLEPeripheralConnectionStateChanged 传入的监听函数。不传此参数则移除所有监听函数。

# 示例代码

const listener = function (res) { console.log(res) }

tap.onBLEPeripheralConnectionStateChanged(listener)
tap.offBLEPeripheralConnectionStateChanged(listener) // 需传入与监听时同一个的函数对象