cbrx_hub_set

On the hub specified by the connection handle, set the key value. Similar to cbrx_connection_set

Note that this function will be slower if you need to do multiple operations on the same hub.

Syntax: see API Call Structure

{

"method": "cbrx_hub_set",

"params": [

hub-serial, dictionary-key, Value

]

}

Parameter Description
hub-serial This is the serial number of the hub returned from cbrx_discover
dictionary-key

See Set Dictionary for more information

Value The value you wish to apply to the key
Returns:

{

"result": true

}

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_hub_set",
  "params": [
    "7FD0505A",
    "TwelveVoltRail.OverVoltage",
    true
  ]
}

Example successful response:

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