cbrx_config_set

This function allows setting persistent configuration options. Multiple configuration keys can be set at once as the Example below shows.

Syntax: see API Call Structure

{

"method": "cbrx_config_set",

"params": {

"configuration-key:configuration-value

}

}

Parameter Description
configuration-key The configuration key you wish to change, as per table below.
configuration-value

The value you wish to change the configuration to.

Configuration-key Desription
adb_path The full pathname to the ADB executable from Androidâ„¢ Developer Tools.
battery-update-enabled Will the battery update be performed at all.
battery-updated-concurrency

How many concurrent battery updates will be run

simultaneously.

battery-update-frequence-seconds How many seconds between battery updates.
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_config_set",
      "params": {
        "battery-update-enabled": true,
        "battery-update-concurrency": 2,
        "battery-update-frequency-seconds": 60
      }
    }

    Example successful response:

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