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)
}
})
wx.connectWifi({
SSID: wifiName,
forceNewApi: true,
password: password
)}