1.ElectronicFence.getLastReportโ
1.Get Last reported state
BDDP
| Param | Value | Desc |
|---|
| method | ElectronicFence.getLastReport | Get Last reported state |
| targetDevice | <String,Necessary> | DeviceId of this device; |
| token | <String,Necessary> | Net Token of this device; |
BUDP
| Param | Value | Desc |
|---|
| data.tamper | <Boolean,Necessary> | Is tamper |
| data.state | <String,Necessary> | Current State,alert/online |
| data.reportTime | <Timestamp,Necessary> | Report time |
| data.reportType | <String,Necessary> | Report type,Report/StatusChange/Alert |
2.ElectronicFence.getStateโ
Get firmware info
BDDP
| Param | Value | Desc |
|---|
| method | ElectronicFence.getVersion | Get firmware info; |
| targetDevice | <String,Necessary> | DeviceId of this device; |
| token | <String,Necessary> | Net Token of this device; |
BUDP
| Param | Value | Desc |
|---|
| data.tamper | <Boolean,Necessary> | Is tamper |
| data.state | <String,Necessary> | Current State,alert/online |
3.ElectronicFence.getVersionโ
Get firmware info
BDDP
| Param | Value | Desc |
|---|
| method | ElectronicFence.getVersion | Get firmware info; |
| targetDevice | <String,Necessary> | DeviceId of this device; |
| token | <String,Necessary> | Net Token of this device; |
BUDP
| Param | Value | Desc |
|---|
| data.version | <String,Necessary> | Current Version; |
| data.newVersion.versionId | <String,Optional> | Id of the newest version; |
| data.newVersion.versionCode | <String,Optional> | Code of the newest version; |
| data.newVersion.fileSize | <String,Optional> | File Size of the newest version; |
4.ElectronicFence.startUpgradeโ
Start Upgrade
BDDP
| Param | Value | Desc |
|---|
| method | ElectronicFence.startUpgrade | Start Upgrade |
| targetDevice | <String,Necessary> | DeviceId of this device; |
| token | <String,Necessary> | Net Token of this device; |
| params.versionId | <String,Necessary> | Version Id you want to upgrade; |
BUDP
| Param | Value | Desc |
|---|
| data.isStarted | <Boolean,Necessary> | Is upgrading started; |
5.Callbacksโ
You can receive it with Http Callback API or MQTT report topic
BUDP
| Param | Value | Desc |
|---|
| data.tamper | <Boolean,Necessary> | Is tamper |
| data.state | <String,Necessary> | Current State,alert/online |