Port.N.mode
Set mode of a single USB port.Sync mode can only be set on device that implement the sync feature set. Biased mode can only be set on devices that implement the 5V feature set.
Syntax: see Call Structure
{ "method": "cbrx_connection_set", "params": [ connection-handle, "Port.N.mode", Value ] } |
Parameter | Description |
---|---|
connection-handle | The Connection Handles as an integer |
N | Port number |
Value | The value you wish to set for the key |
Value | Description |
---|---|
c | Charge mode |
s | Sync and Charge mode |
b | Biased mode |
o | Off |
Returns:
{ "result": true } |
Errors
If there is an error in the API method then a JSON-RPC Error Object will be returned.
Example
Copy
{
"id": 0,
"jsonrpc": "2.0",
"method": "cbrx_connection_set",
"params": [
7654,
"Port.1.Mode",
"c"
]
}