wx.getBLEDeviceCharacteristics不执行?
加断点调试,发现wx.getBLEDeviceCharacteristics不执行,无论success,fail,complete都没有执行,deviceID,serviceID都是正确的直接跳出 (手机为华为nova2,蓝牙模块为cc2640) 代码: getBLEDeviceCharacteristics(deviceId, serviceId) { wx.getBLEDeviceCharacteristics({ deviceId, serviceId, success: (res) => { // console.log('getBLEDeviceCharacteristics success', res.characteristics) console.log('step in getBLEDeviceCharacteristics:',res) // var here=this; // var char_temp=[]; // var return_str={ // char_num:0, // char:[], // }; // return_str.char_num=res.characteristics.length; // for(let i=0;i<return_str.char_num;i++){ // var temp={}; // temp.uuid=res.characteristics[i].uuid; // temp.pro=res.characteristics[i].properties // char_temp[char_temp.length]=temp; // } // return_str.char=char_temp; // here.setData({ // ser_str:return_str // }) }, fail:(res)=> { console.error('getBLEDeviceCharacteristics', res) }, complete:(res)=>{ console.log('getBLEchar complete',res) }, }) },