微信小程序 connectWifi报12010错误
Connected: function (_this) { wx.showLoading({ title: '正在连接...', mask: true }) wx.connectWifi({ SSID: 'yingdaoyinboshi', password: 'jingshuoprint', forceNewApi: true, success: function (res) { wx.hideLoading() console.log(res) _this.setData({ endError: 'wifi连接成功', pwifi: true, startWifi: false, loop: true }); _this.getWifi() }, fail: function (res) { wx.hideLoading() console.log(res) _this.setData({ startError: '自动WIFI连接失败,请重新进入小程序' }); } }) },