startWifi
Introduction
Starts the Wi-Fi module.
Parameters
None
Sample Code
Page({
data: {
wifiStatus: '',
},
onReady() {
const _that = this;
dlt.startWifi({
success: function (res) {
console.log('startWifi success', res);
_that.setData({
wifiStatus: 'startWifi',
});
},
complete: function (res) {
console.log('startWifi complete', res);
},
fail: function (res) {
console.log('startWifi fail', res);
},
});
},
});