|
本帖最后由 BIP978857 于 2024-4-28 15:52 编辑
var gizWifiSDK = api.require('gizWifiSDK');
console.log(ssid)
console.log(password)
gizWifiSDK.startWithAppInfo({ "appInfo": { "appId": "03fa2396ff894bb1862a56a30368c100", "appSecret": "28a27d8bf3594b9ca63b29d29abcb486" } }, function (ret, err) {
if (err == '') {
if (ret.errorCode == 8316) {
// airlink配置乐鑫模组
GizGAgentESP = 4;
gizWifiSDK.setDeviceOnboardingDeploy({
"ssid": ssid,
"key": password,
"mode": 1,
"gagentTypes": [GizGAgentESP],
"timeout": 60
}, function (ret, err) {
});
}
}
});
|
|