cbrx_discover_id_to_os_reference
Map a unit ID for a discovered hub to a device name as used by the OS. This can only be used for locally attached Cambrionix products.
Syntax: see API Call Structure
{ "method": "cbrx_discover_id_to_os_reference", "params": "[hub-serial]" } |
hub-serial is a string which is the serial number of the hub, each string is guaranteed to be unique.
Returns:
{ "result": ["device-name"] } |
device-name is what the OS uses for the connection that the hub which is identified by the hub-serial. For more information please see Serial port
Example:
Example JSON-RPC request:
Copy
{
"jsonrpc": "2.0",
"id": 0,
"method": "cbrx_discover_id_to_os_reference",
"params": [
"DB0074F5"
]
}
Example successful response:
Copy
{
"jsonrpc": "2.0",
"id": 0,
"result": "COM9"
}