/osc/info एपीआई, कैमरे और उसके काम करने के तरीके के बारे में बुनियादी जानकारी दिखाता है
यह काम करता है.
इनपुट
यह निर्देश कोई इनपुट नहीं लेता है.
आउटपुट
नाम
टाइप
ब्यौरा
manufacturer
स्ट्रिंग
कैमरा बनाने वाली कंपनी.
model
स्ट्रिंग
कैमरा मॉडल.
serialNumber
स्ट्रिंग
सीरियल नंबर.
firmwareVersion
स्ट्रिंग
फ़र्मवेयर का मौजूदा वर्शन.
supportUrl
स्ट्रिंग
कैमरे के सहायता वाले वेबपेज का यूआरएल.
gps
बूलियन
अगर कैमरे में जीपीएस है, तो वैल्यू 'सही' होगी.
gyro
बूलियन
अगर कैमरे में जाइरोस्कोप है, तो वैल्यू 'सही' होगी.
uptime
पूर्णांक
कैमरा बूट होने के बाद से सेकंड की संख्या.
api
स्ट्रिंग अरे
इस्तेमाल किए जा सकने वाले एपीआई की सूची.
endpoints
ऑब्जेक्ट
JSON ऑब्जेक्ट, जिसमें कैमरे के एंडपॉइंट के बारे में जानकारी है. अगली टेबल देखें.
apiLevel
पूरी संख्या
यह फ़ील्ड मौजूद न होने पर, यह डिफ़ॉल्ट रूप से [1] होता है. [1, 2], एपीआई 1 और 2, दोनों के बारे में बताता है. वहीं, [2] सिर्फ़ एपीआई 2 के बारे में बताता है. इस जानकारी को वापस पाने और वैल्यू के आधार पर, अलग-अलग तरीके से लागू करने की ज़िम्मेदारी डेवलपर की है. इस फ़ील्ड को एपीआई लेवल 2 में जोड़ा गया था. अगर आपके डिवाइस पर एपीआई 2.1 काम करता है, तो कृपया 2 का भी इस्तेमाल करें.
cameraId
स्ट्रिंग
कैमरे को दिखाने वाला यूनीक आईडी. इस फ़ील्ड को एपीआई लेवल 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"]]