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

Scanner.Connect

to start the network scanning

Syntax

IR.CreateDevice(IR.DEVICE_BLE_SCANNER).Connect()

input sample description
ID IR.DEVICE_BLE_SCANNER type: Number
the identifier of the BLE scanner
output
successful or not type: Boolean
successful


Example:

Scanner = IR.CreateDevice(IR.DEVICE_BLE_SCANNER);
Scanner.Connect(); // scan runs