初始化之后调用连接wifi的接口一直走失败
微信小程序 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连接失败,请重新进入小程序' }); } }) },
2022-10-19