স্ট্যাটাস
/osc/commands/status
API পূর্ববর্তী inProgress
কমান্ডের অবস্থা প্রদান করে। status
API পূর্বে জারি করা কমান্ডের অগ্রগতি পোল করার জন্য দরকারী; উদাহরণস্বরূপ, camera.takePicture
সম্পন্ন হয়েছে কিনা তা নির্ধারণ করা।
নাম | টাইপ | বর্ণনা |
---|
id | স্ট্রিং | কমান্ড আইডি একটি পূর্ববর্তী কল দ্বারা ফিরে
/osc/commands/execute। |
আউটপুট
আউটপুট একটি কমান্ড অবজেক্ট ( /osc/commands/execute
এর আউটপুট দেখুন)
ত্রুটি
ত্রুটি কোড | বর্ণনা |
---|
missingParameter | id নির্দিষ্ট করা নেই। এই পরামিতিটির জন্য একটি কমান্ড আইডি প্রয়োজন যা পূর্ববর্তী কলের মাধ্যমে /osc/commands/execute এ ফিরে আসে। |
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" } } |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-13 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-13 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `/osc/commands/status` API is used to check the status of previously executed commands, like `camera.takePicture`, that were in progress."],["It requires the `id` of the command, obtained from the `/osc/commands/execute` API, to retrieve the status."],["The API response provides details like command name, state (e.g., \"done\"), and any results, such as a file URI."],["Potential errors include missing or invalid `id` parameters."]]],["The `/osc/commands/status` API retrieves the status of prior `inProgress` commands, using a command ID from `/osc/commands/execute`. Input requires the `id` parameter; output mirrors the command object format of `/osc/commands/execute`. Errors include `missingParameter` (no ID), `invalidParameterName`, or `invalidParameterValue` (incorrect ID type/value). An example shows a POST request with ID \"90ABCD\" and a successful response indicating \"camera.takePicture\" is \"done\" with the file URI.\n"]]