Commands
note
This resource allows user to request a special behaviour to SENSR. Detailed behaviour of each commands are described below.
GET
/[SENSR version]/commands/info/list
Return all possible command list in json format.
- Parameters
- Return code
- 200 OK
POST
/[SENSR version]/commands/start
Request to start a new mode.
- Parameters
- mode : A new mode to start. (runtime, calibration, record(N.A.), replay(N.A.))
- Return code
- 200 OK
- 400 BAD REQ
/[SENSR version]/commands/apply-change
Apply all the configuration that has been changed (eg. zone setup).
- Parameters
- Return code
- 200 OK
/[SENSR version]/commands/reload
Reload original project configuration.
- Parameters
- Return code
- 200 OK
/[SENSR version]/commands/cancel
Request to cancel mode switching.
This command is useful when SENSR does not respond because of wrong setup of algo node.
- Parameters
- Return code
- 200 OK
/[SENSR version]/commands/custom
Request to do a special action.(N.A.)
- Parameters
- cmd-id : A command ID. (XXXX, YYYY, ZZZZ...)
- cmd-param : A command parameters. (list of string distinguished by ";"delimiter)
- Return code
- 200 OK
- 400 BAD REQ
- 404 NOT FOUND