stopWifi
简介
关闭 Wi-Fi 模块
入参
无
示例代码
Page({
data: {
wifiStatus: '',
},
onReady() {
const _that = this;
dlt.stopWifi({
success: function (res) {
console.log('stopWifi success', res);
_that.setData({
wifiStatus: 'stopWifi',
});
},
complete: function (res) {
console.log('stopWifi complete', res);
},
fail: function (res) {
console.log('stopWifi fail', res);
},
});
},
});