ממשק ה-API של /osc/info מחזיר מידע בסיסי על המצלמה והפונקציונליות
שהוא תומך בו.
קלט
פקודה זו לא מקבלת קלט.
פלט
שם
סוג
תיאור
manufacturer
מחרוזת
יצרן המצלמה.
model
מחרוזת
דגם המצלמה.
serialNumber
מחרוזת
מספר סידורי.
firmwareVersion
מחרוזת
גרסת הקושחה הנוכחית.
supportUrl
מחרוזת
כתובת ה-URL של דף האינטרנט לתמיכה של המצלמה.
gps
בוליאני
הערך הוא True אם למצלמה יש GPS.
gyro
בוליאני
הערך הוא True אם במצלמה יש ג'יירוסקופ.
uptime
מספר שלם
מספר השניות מאז הפעלת המצלמה.
api
מערך מחרוזות
רשימת ממשקי ה-API הנתמכים.
endpoints
אובייקט
אובייקט JSON שמכיל מידע על נקודות הקצה של המצלמה. פרטים נוספים מפורטים בטבלה הבאה.
apiLevel
מערך מספר שלם
כברירת מחדל, הערך יהיה [1] כשהשדה הזה חסר. [1, 2] מייצג תמיכה ב-API 1 וגם ב-2, בעוד ש-[2] מייצג רק תמיכה ב-API 2. המפתח אחראי לאחזר את המידע הזה ולהטמיע אותו באופן שונה בהתאם לערך. השדה הזה נוסף ברמת API 2. יש להשתמש גם בגרסה 2 אם יש תמיכה ב-API 2.1.
cameraId
מחרוזת
מזהה ייחודי שמייצג את המצלמה. השדה הזה נוסף ברמת API 2.1, והוא רלוונטי להעלאה ישירה.
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["The `/osc/info` API provides essential details about the camera, such as manufacturer, model, firmware, and supported features."],["The response includes information on available endpoints, including HTTP and HTTPS ports for communication."],["The API also indicates the camera's API level, which determines the set of supported commands and features."],["The `endpoints` object within the response provides details on the camera's communication ports, including HTTP and optional HTTPS ports."]]],["The `/osc/info` API, using a GET request, retrieves camera details without requiring input. The output includes the camera's manufacturer, model, serial number, firmware version, support URL, GPS/gyro status, uptime, supported APIs, and API level. It also provides an `endpoints` object with HTTP/HTTPS port information, and optionally vendor-specific data. API level determines support, with `cameraId` introduced in API 2.1. It doesn't have error responses.\n"]]