Update route configuration
To update route configuration, use the command route/update_config:
svc=route/update_config¶ms={"itemId":<long>,
"config":{
"color":<uint>,
"descr":<text>,
"units":[<long>]
}}
You may create route using core/create_route.
Parameters
Name | Description |
itemId | route ID |
config | configuration |
color | color (ARGB) |
descr | description |
units | array of units IDs |
Response
{
"rcfg":{ /* route configuration */
"color":<uint>, /* color (ARGB) */
"descr":<text>, /* description */
"units":[<long>] /* array of units IDs */
}
}