用android写经典蓝牙连接打印机

我现在只能监听到设备的蓝牙开启与关闭,

img


需要监听设备蓝牙断开连接,怎么样做?

你别用5+,你试试这个https://uniapp.dcloud.io/api/system/ble.html#onbleconnectionstatechange