How does Wechat jssdk detect whether Bluetooth is on and Bluetooth status update

problem description

how does Wechat jssdk detect whether Bluetooth is on and Bluetooth status update

the environmental background of the problems and what methods you have tried

need to check the status of Bluetooth in the project. Try onWXDeviceBluetoothStateChange this api, but cannot trigger it.

related codes

wx.ready(() => {
wx.on("onWXDeviceBluetoothStateChange", (data) => console.log("", data));
wx.invoke("openBluetoothAdapter", {
                complete: () => {
                    wx.on("onWXDeviceBluetoothStateChange", (data) => console.log(data));
                }
            });
wx.invoke("getBluetoothAdapterState", {
                complete: (data) => {
                    console.log("", data);
                }
            });
})
// jsApiList

landlord, take a look at this article Portal . I hope it will be helpful to you.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b575-2ba81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b575-2ba81.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?