Ejemplo n.º 1
0
        //Event that is called when the value of the characteristic is changed
        private void CharacteristicEvent_ValueChanged(object sender, Plugin.BLE.Abstractions.EventArgs.CharacteristicUpdatedEventArgs args)
        {
            var buffer    = args.Characteristic.Value;
            var charEvent = new CharacteristicEvent(buffer);

            ValueChanged?.Invoke(sender, charEvent);
        }
Ejemplo n.º 2
0
 public CharacteristicResult(IGattCharacteristic characteristic, CharacteristicEvent eventType, byte[] data)
 {
     this.Characteristic = characteristic;
     this.Event          = eventType;
     this.Data           = data;
 }