I want to read characteristics from a service using WinRT API for BLE. Ihad some working code, but in my last question (Bluetooth low energy characteristic access only works once) i was told my API was too old and wont work on every PC. My issues now are:
I can't get the sample code working. Research on this issue didn't give me answers, so I'm asking here. In the image you can see part of the code and some error messages.
The code doesn't seem to read characteristics, but I'm really unsure how to read them with this new API.
You can take a look at the code here: https://github.com/urish/win-ble-cpp/blob/master/BLEScanner/BLEScanner.cpp
Im using Visual Studio 2019 and i have installed UWP, WinRP C++, and everything else I think I need. Thanks in advance