Материал из Module developer
IR.CreateDevice()
Connect to a peripheral Bluetooth device.
Parameters:
Driver_ID - the driver identifier (when connecting to the device Driver_ID = IR.DEVICE_BLE_DEVICE);
in_name - the device name (it is recommended to use the name from the scanner or advertisement information);
in_uuid - the deice identifier from the scanner.
Response:
the JS object of the device image.
Example:
var device = IR.CreateDevice(IR.DEVICE_BLE_DEVICE, in_name, in_uuid) - connection to the Bluetooth device.
