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

IR.CreateDevice()

Create the BLE scanner.
Note: network scannong is launched automatically when creating the scanner (Connect() )
Parameters:
Driver_ID - the driver identifier (when creating the BLE scanner Driver_ID = IR.DEVICE_BLE_SCANNER).
Response:
IR.EVENT_DEVICE_BLE_FOUND - the event that a Bluetooth device is found.
Example:
var scanner = IR.CreateDevice(IR.DEVICE_BLE_SCANNER) - creation of the BLE scanner.