Пример #1
0
 /*
  *
  * ------------------------------------
  * INIT/CONNECT:
  * ------------------------------------
  */
 public void InitialyzeCentral()
 {
     if (bluetoothDeviceScript == null)
     {
         bluetoothDeviceScript = bluetoothLEHardwareInterface.Initialize(true, false, InitCompleteHandler, InitErrorHandler);
     }
     else
     {
         InitCompleteHandler();
     }
 }
Пример #2
0
        public void DeInitialyzeCentral()
        {
            bluetoothDeviceScript = null;

            if (IsInitialized())
            {
                busy = true;
                bluetoothLEHardwareInterface.DeInitialize(() => {
                    busy = false;
                    OnDeInitComplete();
                });
            }
            else
            {
                OnDeInitComplete();
            }
        }