Пример #1
0
		/// <summary>
		/// Invoked on another thread!!!
		/// </summary>
		private void CharacteristicValueChanged (object sender, CharacteristicValueChangedEventArgs e)
		{
			_queue.Enqueue (new NotificationCarrier (e.CharacteristicUUID, DateTime.UtcNow, e.Value));
		}
Пример #2
0
		protected virtual void OnCharacteristicValueChanged (object sender, Bytes uuid, Bytes value)
		{
			if (this.CharacteristicValueChanged != null)
			{
				CharacteristicValueChangedEventArgs e = new CharacteristicValueChangedEventArgs (uuid, value);
				this.CharacteristicValueChanged (sender, e);
			}
		}