Пример #1
0
        public async Task ConnectAsync()
        {
            _device = await _bluetoothAdapter.GetDeviceAsync(BluetoothAddress);

            _service = await _device.GetServiceAsync(new Guid(PoweredUpBluetoothConstants.LegoHubService));

            _characteristic = await _service.GetCharacteristicAsync(new Guid(PoweredUpBluetoothConstants.LegoHubCharacteristic));

            _logger?.LogDebug("Connected");
        }