/// <summary> /// Initializes a new instance of the<see cref="ObservableGattDescriptors" /> class. /// </summary> /// <param name="descriptor">Descriptor this class wraps</param> /// <param name="parent">The parent service that wraps this characteristic</param> public ObservableGattDescriptors(GattDescriptor descriptor, ObservableGattCharacteristics parent) { Descriptor = descriptor; Parent = parent; Name = GattDescriptorUuidHelper.ConvertUuidToName(descriptor.Uuid); UUID = descriptor.Uuid.ToString(); }
public async Task Initialize() { Name = GattDescriptorUuidHelper.ConvertUuidToName(descriptor.Uuid); UUID = descriptor.Uuid.ToString(); await ReadValueAsync(); PropertyChanged += ObservableGattDescriptors_PropertyChanged; }
/// <summary> /// Initializes a new instance of the<see cref="ObservableGattDescriptors" /> class. /// </summary> /// <param name="descriptor">Descriptor this class wraps</param> /// <param name="parent">The parent service that wraps this characteristic</param> public ObservableGattDescriptors(GattDescriptor descriptor, ObservableGattCharacteristics parent) { Descriptor = descriptor; Parent = parent; Name = GattDescriptorUuidHelper.ConvertUuidToName(Descriptor.Uuid); UUID = Descriptor.Uuid.ToString(); ReadValueAsync(); PropertyChanged += ObservableGattDescriptors_PropertyChanged; }