/* * * ------------------------------------ * INIT/CONNECT: * ------------------------------------ */ public void InitialyzeCentral() { if (bluetoothDeviceScript == null) { bluetoothDeviceScript = bluetoothLEHardwareInterface.Initialize(true, false, InitCompleteHandler, InitErrorHandler); } else { InitCompleteHandler(); } }
public void DeInitialyzeCentral() { bluetoothDeviceScript = null; if (IsInitialized()) { busy = true; bluetoothLEHardwareInterface.DeInitialize(() => { busy = false; OnDeInitComplete(); }); } else { OnDeInitComplete(); } }