0
私を助けることができますか? WebワーカーからBluetooth(cordova-ble-central)の作業を開始するにはどうすればいいですか?ble.scan()frow Webワーカー
ble.scan([]、5、function(device){postMessage(device.name)}、function(error){});
私を助けることができますか? WebワーカーからBluetooth(cordova-ble-central)の作業を開始するにはどうすればいいですか?ble.scan()frow Webワーカー
ble.scan([]、5、function(device){postMessage(device.name)}、function(error){});
私は....これはあなたのために働く願ってい
var devices=[];
ble.startScan([],
function(peripheral)
{
devices.push(peripheral);
},
function(error)
{
console.log(error);
});
setTimeout(ble.stopScan, 1500,
function()
{
console.log("scan stopped.)
},
function()
{
console.log("stopScan failed");
}