微信小程序获取wifi信息
连接WiFi后调用两个API
function(e) {
wx.startWifi({
success(res){
wx.getConnectedWifi({
success(res){
console.log(res)
}
} )
},complete(res){
console.log(res)
}
})
}
执行结果
参考
https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.startWifi.html
https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.getConnectedWifi.html