コード例 #1
0
 private async Task AddNewDescriptor(GattCharacteristic gattCharacteristic,
                                     GattDescriptorDescription descriptor)
 {
     var gattDescriptor1Properties = GattPropertiesFactory.CreateGattDescriptor(descriptor);
     var gattDescriptor            = gattCharacteristic.AddDescriptor(gattDescriptor1Properties);
     await _ServerContext.Connection.RegisterObjectAsync(gattDescriptor);
 }