HomeDocs
Skip to main content

stopWifi

Introduction

Stops the Wi-Fi module.

Parameters

None

Sample Code

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);
},
});
},
});
Privacy agreementDeveloper agreementcontact us: developer_service.mi@transsion.com © 2024 MiniApp. All Rights Reserved.