Beispiel #1
0
        public Bluetooth()
        {
            Singleton = this;
            try
            {
                if (Sensors == null)
                {
                    Sensors = new Sensors(this);
                }

                this.State = BluetoothState.None;

                if (!adapter.IsEnabled)
                {
                    adapter.Enable();
                }

                adapter.StartDiscovery();
            }
            catch (System.Exception e)
            {
                Log.Error("BLINK", "Bluetooth Error!", e);
            }
        }