Skip to content

[ESP301]

Query and Control ESP300 script

[ESP301]action=(action) (CLEAR_ERROR)json=(no) pwd=(admin password)

  • json=no the output format can be in JSON or plain text

  • pwd=(admin password) the admin password if authentication is enabled

  • action

    • if action is empty, it will display current state
    • if action is not empty, it will set the action currently only these actions are supported:
      • ABORT
      • PAUSE
      • RESUME
  • CLEAR_ERROR

    • if CLEAR_ERROR is present, it will clear the current error state
  • In json format
{
"cmd":"301",
"status":"ok",
"data":{
"status":"processing",
"total":"1000",
"processed":"500",
"type":"1",
"name":"/SD/myscript.lua"
}
}
  • cmd Id of requested command, should be 301
  • status status of command, should be ok
  • data content of response, here the current state of script