The /osc/state API returns state attributes of the camera. The difference
between this and the info API is that state contains mutable values
representing camera status (batteryLevel, for example), while the info
contains only static attributes of the camera (for example, manufacturer or
attributes that don’t change often like firmwareVersion).
This command takes no input.
Fingerprint (unique identifier) of the current camera state.
A JSON object containing the status of various the camera states. See the next table.
This JSON object provides the status of various camera states. Manufacturers can
provide new, custom states, which should be prefixed with an underscore ( _ )
to prevent namespace collisions.
ID of the current session. This field was deprecated in API level 2.
Expressed as a floating point value of the battery remaining, e.g. 0.5
True if a new type of storage (e.g. a SD card or a USB drive) is inserted/removed.
This field was deprecated in API level 2.
A unique identifier to distinguish different storages. It is used to tell if the storage has changed or not.
This field was added in API level 2.
Vendor specific additional state about the camera. Prefix with an underscore ( _ ) to prevent namespace collisions.
This command returns no errors.
POST /osc/state HTTP/1.1
Host: [camera ip address]:[httpPort]