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.
Name | Description |
---|---|
itemId | route ID |
config | configuration |
color | color (ARGB) |
descr | description |
units | array of units IDs |
{ "rcfg":{ /* route configuration */ "color":<uint>, /* color (ARGB) */ "descr":<text>, /* description */ "units":[<long>] /* array of units IDs */ } }