- service method for manual binding.
It is recommended to use theautomatic binding
To bind a tag to a unit or unbind a tag from a unit, use the command resource/bind_unit_tag:
svc=resource/bind_unit_tag¶ms={"resourceId":<long>, "unitId":<long>, "tagId":<long>, "time":<uint>, "mode":<bool>}
Name | Description |
---|---|
resourceId | resource ID |
unitId | unit ID |
tagId | tag ID |
time | time (0 - current time) |
mode | mode: 1 - bind, 0 - unbind |
{} /* empty object if execution successful, if not - error code */