Beispiel #1
0
 byte[] PlatformGetValue()
 {
     return(_descriptor.GetValue());
 }
Beispiel #2
0
 Task <byte[]> PlatformGetValue()
 {
     return(Task.FromResult(_descriptor.GetValue()));
 }
        public override void OnDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, GattStatus status)
        {
            base.OnDescriptorRead(gatt, descriptor, status);

            Trace.Message("OnDescriptorRead: {0}", descriptor.GetValue()?.ToHexString());

            DescriptorValueRead?.Invoke(this, new DescriptorCallbackEventArgs(descriptor, GetExceptionFromGattStatus(status)));
        }