Drivers: bind/unbind

To bind a driver to a unit or unbind a driver from a unit, use the command resource/bind_unit_driver:

svc=resource/bind_unit_driver&params={"resourceId":<long>,
				      "unitId":<long>,
				      "driverId":<long>,
				      "time":<uint>,
				      "mode":<bool>}

Parameters

Name Description
resourceId resource ID
unitId unit ID
driverId driver ID
time time (0 – current time)
mode mode: 1 – bind, 0 – unbind

Response

{}	/* empty object if execution successful, if not - error code */