Basler Vision Connector Messaging: Closing the Camera Connection
Use the following messages to close the camera connection. This releases the exclusive access, stops any running image stream, and releases the camera.
It's not considered an error, if no camera with this DeviceID is open or if this camera had already been closed.
JSON Payload
| Field | Optional | Type | Description |
| TransactionID | Yes | String | Transaction identification |
| Action | No | String | Method called. Fixed value: CloseDevice |
| DeviceID | No | String | Device identification |
{
"TransactionID": "1232116",
"Action": "CloseDevice",
"DeviceID": "548451887"
}
Response Object
| Field | Optional | Type | Description |
| TransactionID | Yes | String | Transaction identification |
| ReturnCode | No | Integer (32-bit unsigned) | Message code following Message Codes |
| Message | No | String | Response message |
{
"TransactionID": "1232116",
"ReturnCode": 0,
"Message": "Camera closed."
}