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

Device.DiscoverServices

to discover the device

Syntax

IR.CreateDevice(IR.DEVICE_BLE_DEVICE).DiscoverServices()

input sample description
ID IR.DEVICE_BLE_DEVICE type: Number
the identifier of the BLE scanner
output

-


Example:

var device = IR.CreateDevice(IR.DEVICE_BLE_DEVICE);
device.DiscoverServices();

It calls the event: IR.EVENT_SERVICES_DISCOVERED