状态
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
/osc/commands/status
API 返回之前 inProgress
命令的状态。 status
API 对于查询之前发出的命令的进度很有帮助;例如,确定 camera.takePicture
是否已完成。
输入
名称 |
类型 |
说明 |
id |
字符串 |
之前调用 /osc/commands/execute 返回的命令 ID。 |
输出
输出也是一个命令对象(参见 /osc/commands/execute
的输出
错误
错误代码 |
说明 |
missingParameter |
未指定 id 。 此参数需要使用之前调用 /osc/commands/execute 返回的命令 ID。 |
invalidParameterName |
输入参数未被识别。 |
invalidParameterValue |
输入参数已被识别,但其值无效;例如,id 值不存在或其类型不正确。 |
示例 |
请求 |
POST /osc/commands/status HTTP/1.1
Host: [camera ip address]:[httpPort]
Content-Type: application/json;charset=utf-8
Accept: application/json
Content-Length: {CONTENT_LENGTH}
X-XSRF-Protected: 1
{
"id": "90ABCD"
} |
响应 |
HTTP/1.1 200 OK
Content-Type: application/json;charset=utf-8
Content-Length: {CONTENT_LENGTH}
X-Content-Type-Options: nosniff
{
"name": "camera.takePicture",
"state": "done",
"results": {
"fileUri": "ABC.JPG"
}
} |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2017-04-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]