Skip to content

Latest commit

 

History

History
67 lines (52 loc) · 1.07 KB

set_options_cmd.md

File metadata and controls

67 lines (52 loc) · 1.07 KB

Overview

set_options command let you set options to camera. The cammand support batch options setting.

Request

  • Single options

    {
      "name":"camera._setOptions",
      "parameters": {
        "property":string,
        "value"://depends on property, may be int,string,array or object
      }
    }
  • Batch options

    {
      "name":"camera._setOptions",
      "parameters":[
        {
     			"property":string,
    	    "value"://depends on property, may be int,string,array or object     
        },{
     			"property":string,
    	    "value"://depends on property, may be int,string,array or object     
        }
      ]
    }

Response

  • Single options

    {
      "name":"camera._setOptions",
      "state":"done"
    }
  • Batch options

    {
      "name":"camera._setOptions",
      "state":"done",//if any option failed, the state is error and the detailed error is described in results.
    	"results": {
        "detail":[
          {
            "property":string,
            "code":int,
            "description":string
          }  
        ]
    	}
    }