cbrx_hub_get
From the hub specified by the hubs serial number, get the key value. similar to cbrx_connection_get.
Note that this is function will be slower if you need to do multiple operations on the same hub.
Syntax: see API Call Structure
{ "method": "cbrx_connection_get", "params": [ hub-serial, dictionary-key ] } |
Parameter | Description |
---|---|
hub-serial | This is the serial number of the hub returned from cbrx_discover |
dictionary-key |
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:
{
"jsonrpc": "2.0",
"id": 0,
"method": "cbrx_hub_get",
"params": [
"000000897FD0505A",
"nrOfPorts"
]
}
Example successful response:
{
"jsonrpc": "2.0",
"id": 0,
"result": 15
}