'UWP BLE - Problem with WriteClientCharacteristicConfigurationDescriptorAsync

I'm working on a Project to connect BLE device. My code works well 2 years ago, but now the CharacterStatus is unreachable here on this place of the code :

var CharacterStatus = await m_characteristicRX.Characteristics[0].WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue.Notify);

Could someone please help me how to fix the code.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source