cbrx_connection_get

From the hub specified by the connection handle, get the key value.

Syntax: see API Call Structure

{

"method": "cbrx_connection_get",

"params": [

connection-handle, "dictionary-key" ]

}

Parameter Description
connection-handle The Connection Handles as an integer
dictionary-key

as returned by a call to cbrx_connection_getdictionary see

Get Dictionary for more information

Returns:

{

"result": [dictionary-value] }

dictionary-value is the value of the dictionary key, see Get Dictionary for more information.

  • Errors
  • If there is an error in the API method then a JSON-RPC Error Object will be returned.

    Examples

    Example JSON-RPC request:

    Copy
    {
      "jsonrpc": "2.0",
      "id": 0,
      "method": "cbrx_connection_get",
      "params": [
        569,
        "nrOfPorts"
      ]
    }

    Example successful response:

    Copy
    {
      "jsonrpc": "2.0",
      "id": 0,
      "result": 10
    }