offWifiConnected
Introduction
Cancels listening for Wi-Fi events.
Parameters
None
Sample Code
Page({
data: {
offWifiConnected: '',
},
onReady() {
this.offWifiConnected();
},
offWifiConnected() {
const _that = this;
dlt.offWifiConnected({
success: function (res) {
console.log('offWifiConnected success', res);
_that.setData({
offWifiConnected: res,
});
},
complete: function (res) {
console.log('offWifiConnected complete', res);
},
fail: function (res) {
console.log('offWifiConnected fail', res);
_that.setData({
offWifiConnected: res,
});
},
});
},
});