Questions about GattLocalCharacteristicParameters and creating Characteristics

Fabio Guaraldo 1 Reputation point
2020-07-16T19:45:53.727+00:00

Hello, I'm creating a custom characteristic with the code below:

GattLocalCharacteristicParameters scanStateCharacteristicsParameters = new GattLocalCharacteristicParameters  
        {  
            CharacteristicProperties = GattCharacteristicProperties.Read | GattCharacteristicProperties.WriteWithoutResponse | GattCharacteristicProperties.Notify,  
            WriteProtectionLevel = GattProtectionLevel.Plain,  
            ReadProtectionLevel = GattProtectionLevel.Plain  
        };  
  
            scanStateCharacteristicsParameters.UserDescription = "Scan State";  
  
            GattLocalCharacteristicResult result =  
               await ServiceProvider.Service.CreateCharacteristicAsync(  
                   CustomCharacteristicUuids.WifiScanStateCharacteristicGuid,  
                   scanStateCharacteristicsParameters);  

According to the documentation(https://learn.microsoft.com/en-us/windows/uwp/devices-sensors/gatt-server), when a characteristic is marked as notify, a type descriptor (Client Characteristic Configuration) is created automatically. But on the client the only descriptor that is available is the Characteristic User Description.
Does anyone know what's going on?

Universal Windows Platform (UWP)
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.