Skip to content
STAGING SERVER
DEVELOPMENT SERVER

Basler Vision Connector Messaging: Assigning Pins to Cameras in a Recipe Instance#

Use this command to assign cameras to recipe pins. If you change existing assignments, only the assignments specified in the command are changed. Any other existing assignments remain unchanged.

If you close a camera, all its pin assignments are automatically removed.

JSON Payload#

Field Optional Type Description
TransactionID Yes String Transaction identification
Action No String Method called. Fixed value: cstm_ConnectRecipe
RecipeID No String The user-defined ID to use during communication with the recipe. See also topic Recipe Identification.
PinConnections No List of key-value pairs of strings The recipe pin connections as list of key-value pairs of strings. The key is the user defined pin ID chosen in the recipe (see also Naming of Input Pins). The value is a device ID of an open device that shall be assigned to. To remove a connection, set the value of an open device to null.
{
  "TransactionID": "234423465465",
  "Action": "cstm_ConnectRecipe",
  "RecipeID": "MyRecipeID",
  "PinConnections": {
    "MyFirstPinID": "MyDeviceID1",
    "MySecondPinID": null
  }
}

Response Object#

Field Optional Type Description
TransactionID Yes String Transaction identification.
ReturnCode No Integer Message code (see main Image Connector Applications Interface Specification document).
Message No String Response message
{
  "TransactionID": "234423465465",
  "ReturnCode": 0,
  "Message": "Recipe connected successfully."
}