Register wifi device by EZ Mode
!!! Registering must be one device at a time.
If you try to register multiple devices at the same time, you will receive only one registration event and no other events.
In case success registration, Thing name is made by combination(building/dong/ho/user (zGuard meta info.)
Success and failure details as a result
iot-device-sdk.registerWifiEzDevice( "ssid", "password", 90).then( (okRes: any) => { debugText("Ok Res") assignedGwId = okRes.devId console.log(assignedGwId) console.log(okRes) }, (errRes) => { debugText("Ng Res") console.log(errRes) })
The name of the Wi-Fi network to which a paired device is connected
The password of the Wi-Fi network to which a paired device is connected
maximum timeout for wifi devices registration, unit is seconds
Register wifi device by EZ Mode
!!! Registering must be one device at a time.
In case success registration, Thing name is made by combination(building/dong/ho/user (zGuard meta info.)
Returns
Success and failure details as a result
Example