收藏
回答

wx.getConnectedBluetoothDevices在IOS上获取的devices是空?

getConnectedBluetoothDevices() {
    wx.getConnectedBluetoothDevices({
        services: ["0865F001-33B0-4B3E-0831-EF914402D222"],
        success: (result) => {
            if (result.errMsg == "getConnectedBluetoothDevices:ok") {
                console.log("获取到的蓝牙列表:" + JSON.stringify(result));
                var btdeivesName = result.devices[0].name;
            }
        },
        fail: (res) => {
        },
        complete: (res) => {
        },
    })
},


最后一次编辑于  04-11
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容