Control the start and stop of tasks
HTTP Request URL: http(s)://api.thingboot.com/{AppID}/task/control/?sign={sign}&ts={ts} About the sign and ts definition
Or
MQTT Publish Topic: api/{AppID}/task/control The returned results are also received on the same topic.
Name Type Description
task int
Task ID, integer type. Each call can only control one task.
oper string
Operation type, enumeration type, string. Optional values: start, begin, or enable: start the task stop, end, or cancel: stop or cancel the task reset: reset the count, and the number of executions will be set to zero test: test execution, which will immediately run the task without being restricted by policies or counted, but will generate an execution log

In oper=test, when the task test is executed, if the call is successful, it will return the result after the call; otherwise, it will return the operation result.


Name Type Description
code string
Return status value: 200 indicates success; for other errors, please refer to the "Global Error Codes" on the API homepage.
data string
None
msg string
Return status information