收藏
回答

为什么使用 华为荣耀p20手机 连接WiFi会直接进入 fail 回调errCode返回12010?

wx.connectWifi({
	SSID: account,
	password: password,
	success: (res) => {
		console.log(res)
		if(res.errCode === 0 || res.errMsg === "connectWifi:ok"){
			console.log("wifi连接成功")
		} else {
			console.log("wifi连接失败")
		}
	},
	fail: (err) => {
		console.log("wifi连接失败")
		console.log(err)
	}
})
回答关注问题邀请回答
收藏

3 个回答

  • Mark😋
    Mark😋
    2021-06-08

        wx.connectWifi({

                SSID: wifiName,

                forceNewApi: true,

                password: password

    )}

    2021-06-08
    有用 1
    回复
  • ID没啥用
    ID没啥用
    2021-05-08

    system error :invalid network id

    打印出来这个

    2021-05-08
    有用
    回复
  • Cjiang
    Cjiang
    2021-05-07

    2021-05-07
    有用
    回复 1
    • ID没啥用
      ID没啥用
      2021-05-08
      system error :invalid network id
      打印出来这个
      2021-05-08
      回复
登录 后发表内容