微信公开课
微信公开课小程序热门讨论关于「如何监听已连接蓝牙的RSSI」的小程序开发问题
补充:如何监听已连接蓝牙的RSSI
展开:onReady:function(){varthat=this;setInterval(function(){wxgetBluetoothDevices({success:function(res){vardevices=resdevices;for(variindevices){consolelog(设备:+devices[i][RSSI])vardevice=devices[i]if(devicename===thatdatadeviceName_L){thatsetData({rssi_L:device[RSSI]})}elseif(devicename===thatdatadeviceName_R){thatsetData({rssi_R:device[RSSI]})}}},})},1000)},每次都RSSI都是一样的,没有变化即速小程序:我这边看看能否下版本支持
更多有关「如何监听已连接蓝牙的RSSI」的讨论可以前往微信公开课小程序参与互动哦!了解更多