- ble写入数据时未回调success和complete
我在使用wx.writeBLECharacteristicValue时硬件设备接收到了写入的数据,但是success和complete回调却没有执行,我在回调里写了wx.showToast,没弹出来。 [代码]wx.writeBLECharacteristicValue({[代码][代码] [代码][代码]deviceId: deviceId,[代码][代码] [代码][代码]serviceId: serviceId,[代码][代码] [代码][代码]characteristicId: characteristicId,[代码][代码] [代码][代码]value: buffer,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {//成功时未执行[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'发送成功'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]console.log([代码][代码]'writeBLECharacteristicValue success'[代码][代码], res.errMsg)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail:[代码][代码]function[代码][代码](err){[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'发送失败:'[代码] [代码]+ err.errCode,[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete:[代码][代码]function[代码][代码](){//成功时未执行[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'complete'[代码][代码],[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码]我使用的是iPhone6s,微信版本号是:6.6.5
2018-03-20 - 微信小程序调用c++或者python
大家好,我目前正在开发微信小程序,但有一些成熟的算法是c++或者python写的,请问微信小程序能直接调用c++或者python吗?
2017-04-13