cbrx_device_get

From the hub specified by the serial number, get the key value. similar to cbrx_connection_get Only get values that are relevant to ports are accepted.

Note that this is slower then other methods if you need to do multiple operations on the same device.

Syntax: see API Call Structure

{

"method": "cbrx_device_get",

"params": [

usb-serial, dictionary-key

]

}

Parameter Description
usb-serial USB serial number
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 key value that is specified 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_device_get",
      "params": [
        "0000802000184C390CD2002E",
        "USBSpeed"
      ]
    }

    Example successful response:

    Copy

    "jsonrpc": "2.0", 
    "id": 0, 
    "result": "High" 
    }