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

Device.Disconnect

to disconnect from the peripheral device

Syntax

IR.CreateDevice(IR.DEVICE_BLE_DEVICE).Disconnect()

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


Example:

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

It activates the event: IR.EVENT_OFFLINE