Материал из Module developer
Перейти к: навигация, поиск

Device.ReadCharacteristic

to read the value of the characteristic

Syntax

IR.CreateDevice(IR.DEVICE_BLE_DEVICE).ReadCharacteristic(in_ble_cha)

input sample description
ID IR.DEVICE_BLE_DEVICE type: Number
the idntifier of the BLE scanner
in_ble_cha type: Object
the object of the characteristic
output

-


Example:

var device = IR.CreateDevice(IR.DEVICE_BLE_DEVICE);
device.ReadCharacteristic(in_ble_cha);

it activates the event: IR.EVENT_CHARACTERISTIC_READ - the characteristic is read.