/osc/state API แสดงผลแอตทริบิวต์ state ของกล้อง ความแตกต่าง
ระหว่าง API นี้กับ info API คือ state มีค่าที่เปลี่ยนแปลงได้
แสดงสถานะกล้อง (เช่น batteryLevel) ในขณะที่ info
มีเฉพาะแอตทริบิวต์แบบคงที่ของกล้อง (เช่น manufacturer หรือ
ที่ไม่มีการเปลี่ยนแปลงบ่อย เช่น firmwareVersion)
[null,null,["อัปเดตล่าสุด 2024-08-21 UTC"],[[["The `/osc/state` API provides mutable camera status values like battery level, unlike the `/osc/info` API which returns static camera attributes."],["Camera state is represented by a `fingerprint` that uniquely identifies it and changes whenever a tracked state is modified."],["The `state` object contains various camera status details, including `batteryLevel`, storage information, and vendor-specific data."],["Manufacturers can introduce custom states within the `state` object using an underscore (_) prefix to avoid conflicts."]]],["The `/osc/state` API retrieves mutable camera status attributes. It outputs a `fingerprint`, a unique identifier for the current camera state, and a `state` object. The `state` object includes `batteryLevel`, `storageUri` and optional vendor-specific states prefixed with an underscore. It also contained `sessionId` and `storageChanged` which have been deprecated. The API uses POST and the response has a `200 OK` HTTP status with a content-type of `application/json`. The fingerprint changes with any tracked state change.\n"]]