cbrx_discover

Discover Cambrionix units, obtain hub serial number.

Syntax: see API Call Structure

{

"method": "cbrx_discover",

"params": [unit] }

Unit parameter Description
local Unit ID for hub attached
docks Unit IDs for multiple hubs connected together and attached
Returns:

{

"result": [hub-serial] }

hub-serialis a string which is the serial number of the hub, each string is guaranteed to be unique.

Examples

Example JSON-RPC request:

Copy
{
  "jsonrpc": "2.0",
  "id": 0,
  "method": "cbrx_discover",
  "params": [
    "local"
  ]
}

Example successful response:

Copy
{
  "jsonrpc": "2.0",
  "id": 0,
  "result": [
    "000000897FD0505A"
  ]
}