Материал из Module developer
Device.WriteDescriptor
to write the descriptor value
Syntax
IR.CreateDevice(IR.DEVICE_BLE_DEVICE).WriteDescriptor(in_ble_des)
| input | sample | description |
| ID | IR.DEVICE_BLE_DEVICE | type: Number the identifier of the BLE scanner |
| in_ble_des | type: Object the descriptor object |
| output |
-
Example:
var device = IR.CreateDevice(IR.DEVICE_BLE_DEVICE); device.WriteDescriptor(in_ble_des);
It activates the event: IR.EVENT_DESCRIPTOR_WRITE - the descriptor is written.
Notes:
- The Value property of the descriptor is used as a container of the new value for sending to the device;
- The format of the byte array for writing can differ from the array which can be received at reading;
- The descriptor has to have the level of permissions for writing.
