Service Agreement

Register and login

Name version number Date created Last Update Status
Sign Up 1.0 2021/12/30 2021/12/30 Definition
Description
Sign in
Request description
token User's APIToken
infotype fixed to "register"
Ifno User's APIToken
Send a message
Response JSON data format

Get individual device status

Name version number Date created Last Update Status
Get individual device status 1.0 2021/12/30 2021/12/30 Definition
Description
Get the status of a single device, which is the cached data of the server; To get the latest status, you need to call the request update command in 1.4.4. Verify whether it is the latest state, which can be judged by the timestamp.
Request description
infotype Fixed to damread
info Fixed Fields
unid is the unique ID of the requested device
Request Format
Response JSON data format

Get the status of all devices under the account

Name version number Date created Last Update Status
Get individual device status 1.0 2021/12/30 2021/12/30 Definition
Description
Get all device status
Request description
infotype Fixed to damreadall
Example Body Section
Response JSON data format

Read Status

Name version number Date created Last Update Status
Read Status 1.0 2021/12/30 2021/12/30 Definition
Description
Read Status Register read support for DO DI AI AO.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Support rdo,rdi,rai,rao operations
unid is the unique ID of the requested device
regstart The starting address of the register accessed, starts from 1 by default.
regnum Number of registers accessed, depending on the device model.
rdo Read DO status
rdi Read status of DI
rai Read AI state
rao Read AO status
Read DO status: example Body section
Read DO Status: Response JSON Data Format
Read DI Status: Example Body Section
Read DI Status: Response JSON Data Format
Read AI Status: Example Body Section
Read AI Status: Response JSON Data Format
Read AO status: example Body section
Read AO Status: Response JSON Data Format

[Relay operation]Close all channels

Name version number Date created Last Update Status
Close all channels 1.0 2021/12/30 2021/12/30 Definition
Description
[Relay Operation] Turns off all channels. After controlling the relay, it will actively push the real-time data of the device.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to aclose
unid is the unique ID of the requested device
Example Body Section
Response JSON data format

[Relay operation]Close a channel

Name version number Date created Last Update Status
Close a channel relay 1.0 2021/12/30 2021/12/30 Definition
Description
Close a channel relay. After controlling the relay, it will actively push the real-time data of the device.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to close
unid is the unique ID of the requested device
io Controlled channel. 1 is the first relay channel 2 is the second relay channel
Example Body Section
Response JSON data format

[Relay Operation] Turn off after a period of time

The delay time controlled by
Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time. After controlling the relay, it will actively push the real-time data of the device. (requires change postback enabled)
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to closeone
unid is the unique ID of the requested device
io Controlled channel. 1 is the first relay channel 2 is the second relay channel
diy, the unit is 0.1 seconds; Value range: 1-65000
Example Body Section
Response JSON data format

[Relay Operation]Open all channels

Name version number Date created Last Update Status
Open all channels 1.0 2021/12/30 2021/12/30 Definition
Description
Operates the relay to turn on all channels. After controlling the relay, it will actively push the real-time data of the device.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to aopen
unid is the unique ID of the requested device
Example Body Section
Response JSON data format

[Relay operation]Open a channel

Name version number Date created Last Update Status
Open a channel 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay to open a channel.
Request description
infotype Fixed to damopr
info Fixed Fields
Example Body Section
Response JSON data format

[Relay Operation] Turns on for a while and then turns off

Name version number Date created Last Update Status
After opening for a while close 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, open for a period of time and then close. After controlling the relay, it will actively push the real-time data of the device. (requires change postback enabled)
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to openone
unid is the unique ID of the requested device
io Controlled channel. 1 is the first relay channel 2 is the second relay channel
dly Control delay time, the unit is 0.1 seconds; Value range: 1-65000
Example Body Section
Response JSON data format

[Relay operation]Multi-channel operation

The starting channel of the
Name version number Date created Last Update Status
Multi-channel operation 1.0 2021/12/30 2021/12/30 Definition
Description
Operation relay, multi-channel operation. After the operation is completed, the data will be actively pushed.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to wdo
unid is the unique ID of the requested device
regstart control. 1 is from the first relay channel 2 is from the second relay channel
doinfo Relay control status group, supports multiple Value meaning: 0 means off 1 means open 2 means ignore the operation 0211 means that the 1st channel is closed, the 2nd channel is ignored, the 3rd channel is open, and the 4th channel is open.
Example Body Section
Response JSON data format

[Holding register operation]Write operation

Name version number Date created Last Update Status
Write Holding Registers 1.0 2021/12/30 2021/12/30 Definition
Description
Write Holding Register
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to wao
unid is the unique ID of the requested device
regstart Start register for control. To operate such registers, please refer to the relevant register descriptions in the manual.
aoinfos 16-bit integer array representing the written data content.
Example Body Section
Response JSON data format

[Holding register operation]Write operation Hex

Name version number Date created Last Update Status
Write Holding Registers 1.0 2021/12/30 2021/12/30 Definition
Description
Write holding registers in HEX format (hold)
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to waohex
unid is the unique ID of the requested device
regstart Start register for control. To operate such registers, please refer to the relevant register descriptions in the manual.
aoinfos A string of hexadecimal data.
Example Body Section
Response JSON data format

[Lora operation]Read communication parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format
 

[Lora operation]Read working parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format
 

[Lora operation]Write communication parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format
 

[Lora operation]Write working parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format
 

Service Agreement

Register and login

Name version number Date created Last Update Status
Sign Up 1.0 2021/12/30 2021/12/30 Definition
Description
Sign in
Request description
token User's APIToken
infotype fixed to "register"
Ifno User's APIToken
Send a message
Response JSON data format

Get individual device status

Name version number Date created Last Update Status
Get individual device status 1.0 2021/12/30 2021/12/30 Definition
Description
Get the status of a single device, which is the cached data of the server; To get the latest status, you need to call the request update command in 1.4.4. Verify whether it is the latest state, which can be judged by the timestamp.
Request description
infotype Fixed to damread
info Fixed Fields
unid is the unique ID of the requested device
Request Format
Response JSON data format

Get the status of all devices under the account

Name version number Date created Last Update Status
Get individual device status 1.0 2021/12/30 2021/12/30 Definition
Description
Get all device status
Request description
infotype Fixed to damreadall
Example Body Section
Response JSON data format

Read Status

Name version number Date created Last Update Status
Read Status 1.0 2021/12/30 2021/12/30 Definition
Description
Read Status Register read support for DO DI AI AO.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Support rdo,rdi,rai,rao operations
unid is the unique ID of the requested device
regstart The starting address of the register accessed, starts from 1 by default.
regnum Number of registers accessed, depending on the device model.
rdo Read DO status
rdi Read status of DI
rai Read AI state
rao Read AO status
Read DO status: example Body section
Read DO Status: Response JSON Data Format
Read DI Status: Example Body Section
Read DI Status: Response JSON Data Format
Read AI Status: Example Body Section
Read AI Status: Response JSON Data Format
Read AO status: example Body section
Read AO Status: Response JSON Data Format

[Relay operation]Close all channels

Name version number Date created Last Update Status
Close all channels 1.0 2021/12/30 2021/12/30 Definition
Description
[Relay Operation] Turns off all channels. After controlling the relay, it will actively push the real-time data of the device.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to aclose
unid is the unique ID of the requested device
Example Body Section
Response JSON data format

[Relay operation]Close a channel

Name version number Date created Last Update Status
Close a channel relay 1.0 2021/12/30 2021/12/30 Definition
Description
Close a channel relay. After controlling the relay, it will actively push the real-time data of the device.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to close
unid is the unique ID of the requested device
io Controlled channel. 1 is the first relay channel 2 is the second relay channel
Example Body Section
Response JSON data format

[Relay Operation] Turn off after a period of time

The delay time controlled by
Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time. After controlling the relay, it will actively push the real-time data of the device. (requires change postback enabled)
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to closeone
unid is the unique ID of the requested device
io Controlled channel. 1 is the first relay channel 2 is the second relay channel
diy, the unit is 0.1 seconds; Value range: 1-65000
Example Body Section
Response JSON data format

[Relay Operation]Open all channels

Name version number Date created Last Update Status
Open all channels 1.0 2021/12/30 2021/12/30 Definition
Description
Operates the relay to turn on all channels. After controlling the relay, it will actively push the real-time data of the device.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to aopen
unid is the unique ID of the requested device
Example Body Section
Response JSON data format

[Relay operation]Open a channel

Name version number Date created Last Update Status
Open a channel 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay to open a channel.
Request description
infotype Fixed to damopr
info Fixed Fields
Example Body Section
Response JSON data format

[Relay Operation] Turns on for a while and then turns off

Name version number Date created Last Update Status
After opening for a while close 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, open for a period of time and then close. After controlling the relay, it will actively push the real-time data of the device. (requires change postback enabled)
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to openone
unid is the unique ID of the requested device
io Controlled channel. 1 is the first relay channel 2 is the second relay channel
dly Control delay time, the unit is 0.1 seconds; Value range: 1-65000
Example Body Section
Response JSON data format

[Relay operation]Multi-channel operation

The starting channel of the
Name version number Date created Last Update Status
Multi-channel operation 1.0 2021/12/30 2021/12/30 Definition
Description
Operation relay, multi-channel operation. After the operation is completed, the data will be actively pushed.
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to wdo
unid is the unique ID of the requested device
regstart control. 1 is from the first relay channel 2 is from the second relay channel
doinfo Relay control status group, supports multiple Value meaning: 0 means off 1 means open 2 means ignore the operation 0211 means that the 1st channel is closed, the 2nd channel is ignored, the 3rd channel is open, and the 4th channel is open.
Example Body Section
Response JSON data format

[Holding register operation]Write operation

Name version number Date created Last Update Status
Write Holding Registers 1.0 2021/12/30 2021/12/30 Definition
Description
Write Holding Register
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to wao
unid is the unique ID of the requested device
regstart Start register for control. To operate such registers, please refer to the relevant register descriptions in the manual.
aoinfos 16-bit integer array representing the written data content.
Example Body Section
Response JSON data format

[Holding register operation]Write operation Hex

Name version number Date created Last Update Status
Write Holding Registers 1.0 2021/12/30 2021/12/30 Definition
Description
Write holding registers in HEX format (hold)
Request description
infotype Fixed to damopr
info Fixed Fields
opr Fixed to waohex
unid is the unique ID of the requested device
regstart Start register for control. To operate such registers, please refer to the relevant register descriptions in the manual.
aoinfos A string of hexadecimal data.
Example Body Section
Response JSON data format

[Lora operation]Read communication parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format
 

[Lora operation]Read working parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format
 

[Lora operation]Write communication parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format
 

[Lora operation]Write working parameters

Name version number Date created Last Update Status
Turn off after a period of time 1.0 2021/12/30 2021/12/30 Definition
Description
Operate the relay, turn off after a period of time
Request description
 
Example Body section
 
Response JSON data format