Skip to content

Connection

Enumerate cameras connected via USB and network, then connect in the desired mode. Priority key must be set to pc-remote after connecting before any property changes or shooting commands will be accepted.

See the auto-generated API reference for full request/response schemas.

GET /api/cameras — enumerate all cameras visible via USB and network.

Terminal window
curl http://localhost:8080/api/cameras

POST /api/cameras/{cameraId}/connection — establish a connection in the specified mode.

Body fields:

Field Default Description
mode remote remote, remote-transfer, or contents
reconnecting on or off — auto-reconnect on disconnection
username For network cameras
password For network cameras
Terminal window
curl -X POST http://localhost:8080/api/cameras/D10F60149B0C/connection \
-H "Content-Type: application/json" \
-d '{"mode": "remote"}'

GET /api/cameras/{cameraId}/connection — check whether a camera is currently connected.

Terminal window
curl http://localhost:8080/api/cameras/D10F60149B0C/connection

DELETE /api/cameras/{cameraId}/connection — disconnect a camera. Clears event callbacks and waits for clean disconnection.

Terminal window
curl -X DELETE http://localhost:8080/api/cameras/D10F60149B0C/connection