HomeDocs
跳到主要内容

startWifi

简介

启动 Wi-Fi 模块

入参

示例代码

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