public Bluetooth(Context context) { _manager = (BluetoothManager)context.GetSystemService(Class.FromType(typeof(BluetoothManager))); _scanner = _manager.Adapter.BluetoothLeScanner; _scanCallback = new ScanCallback(this); _identifier = Injection.GetDeviceId(context); }
public override void DiscoveredCharacteristic(CBPeripheral peripheral, CBService service, NSError error) { _characteristic = service.GetCharacteristic(CharacteristicUuid); EnableNotification(); _handler.Connect(_adapterName, Encoding.UTF8.GetBytes(Injection.GetDeviceId())); }