Ejemplo n.º 1
0
 /// <summary>
 /// Add the Bluetooth SIG adopted descriptors to <paramref name="attributes" />
 /// <remarks>
 ///    <see href="https://www.bluetooth.com/specifications/gatt/descriptors" />
 /// </remarks>
 /// </summary>
 public static void AddTo(KnownAttributes attributes)
 {
     attributes.Add(CharacteristicExtendedProperties);
     attributes.Add(CharacteristicUserDescription);
     attributes.Add(ClientCharacteristicConfiguration);
     attributes.Add(ServerCharacteristicConfiguration);
     attributes.Add(CharacteristicFormat);
     attributes.Add(CharacteristicAggregateFormat);
     attributes.AddDescriptor(0x2906, "Valid Range");
     attributes.AddDescriptor(0x2907, "External Report Reference");
     attributes.AddDescriptor(0x2908, "Export Reference");
 }
Ejemplo n.º 2
0
 /// <inheritdoc cref="AddTo" />
 public static void AddAdoptedDescriptors(this KnownAttributes attributes)
 {
     AddTo(attributes);
 }