adabru / BleWinrtDll

BLE for Unity 3d in Windows without UWP.
Do What The F*ck You Want To Public License
168 stars 52 forks source link

BleWinrtDll.cpp:501 SubscribeCharacteristicAsync catch: The attribute cannot be written. #19

Open qwetan987 opened 3 years ago

qwetan987 commented 3 years ago

hi when i press subscribe it returns this error

is there any solution for this

thanks

adabru commented 3 years ago

For investigation, you can download and run the Microsoft's Bluetooth Low Energy sample and see whether subscribing works there. If the demo works, it should be fixable in this repo.

Did you already try subscribing with another platform/program?

PatrykSajdok commented 3 years ago

I was able to subscribe in Microsoft's sample, but I have the same error in Unity

adabru commented 3 years ago

Does this mean in Microsoft's sample the subscription failed with the same error?

PatrykSajdok commented 3 years ago

I had problem in Unity (The attribute cannot be written), then I've checked Microsoft's sample and everything was working there and after that for some reason error in Unity disappeared. However I still cannot get characteristc values from some BT devices.