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

IR.DEVICE_BLE_DEVICE

the identifier of the BLE device. It is used at connection to a peripheral Bluetooth device

Syntax

IR.CreateDevice(IR.DEVICE_BLE_DEVICE, in_name, in_uuid);

input sample description
ID IR.DEVICE_BLE_DEVICE type: Number
the identifier of the BLE device
in_name "My_BLE_device" type: string
the device name (it is recommended to use the name from the scanner or advertisement information)
in_uuid "550e8400-e29b-41d4-a716-446655440000" type: string
the device identifier from the scanner
output
Object type: Object
the reference to the device


Example:

var device = IR.CreateDevice(IR.DEVICE_BLE_DEVICE, in_name, in_uuid);