Parameter settings
The basic parameters are usually of numeric type, Boolean type, and option type.
- Numeric type: Such as uplink power percentage, protection threshold, and other integers or decimals.
- Boolean type: Such as the anti-reverse current switch and other switches.
- Option type: Such as the safety regulation options of the device, battery options, etc.
- The option dictionary of the option type can be referred to in the appendix.
✨ Example
Setting
Request
curl --location -g '{{EU}}/wrapper/cmd/set' \
--header 'Token: {{TOKEN}}' \
--data '{
"deviceSn": "A112200162230146",
"sendSettingItemList": [
{
"settingCode": "safetyCountry",
"value": "26"
}
]
}'
Response
{
"errorCode": 0,
"info": null,
"body": "65784c2e5535a66fd789eee6",
"successful": true
}
Verify the setting result
According to the Setting Response, poll and query the issued result. It is valid within one minute. If it is still not issued successfully after more than one minute, it is considered a failed issue.
Request
curl --location -g '{{EU}}/cmd/checkControlResult?recordId=65784c2e5535a66fd789eee6' \
--header 'Token: {{TOKEN}}'
Response
{
"errorCode": 0,
"info": null,
"body": {
"safetyCountry": {
"controlResult": true,
"currentValue": "10"
}
},
"successful": true
}