Ejemplo n.º 1
0
        private void PlatformDispose(bool disposing)
        {
            if (disposing)
            {
                _callback.CharacteristicChanged -= OnCharacteristicChanged;
                _callback.CharacteristicRead    -= OnCharacteristicRead;
                _callback.CharacteristicWrite   -= OnCharacteristicWrite;

                _characteristic.Dispose();
            }
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     try
     {
         StopUpdates();
         _nativeCharacteristic.Dispose();
         _gatt.Dispose();
     }
     catch
     {
     }
 }