Coder Social home page Coder Social logo

BleWinrtDll.cpp:501 SubscribeCharacteristicAsync catch: 属性需要进行身份验证,然后才能读取或写入。 about blewinrtdll HOT 7 CLOSED

adabru avatar adabru commented on July 22, 2024
BleWinrtDll.cpp:501 SubscribeCharacteristicAsync catch: 属性需要进行身份验证,然后才能读取或写入。

from blewinrtdll.

Comments (7)

Jason-Chn95 avatar Jason-Chn95 commented on July 22, 2024

4ff2436632c847ea84555b679f05b09

from blewinrtdll.

adabru avatar adabru commented on July 22, 2024

I didn't do any bluetooth authentication yet. From the error message I'd also guess you need it.

Maybe pairing it will help:
https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/bluetooth-dev-faq#why-does-my-bluetooth-le-device-stop-responding-after-a-disconnect . You could also try the microsoft sample https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/BluetoothLE and see whether you can read the value without authentication instead of subscribing to it. You can also use the microsoft sample to try out the pairing code.

from blewinrtdll.

Jason-Chn95 avatar Jason-Chn95 commented on July 22, 2024

I didn't do any bluetooth authentication yet. From the error message I'd also guess you need it.

Maybe pairing it will help:
https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/bluetooth-dev-faq#why-does-my-bluetooth-le-device-stop-responding-after-a-disconnect . You could also try the microsoft sample https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/BluetoothLE and see whether you can read the value without authentication instead of subscribing to it. You can also use the microsoft sample to try out the pairing code.

Thanks adabru for your help,now I solved this problem.I have another question. Do you know how to do it?I want to connect two Bluetooth devices on my PC,how to do this ?

from blewinrtdll.

adabru avatar adabru commented on July 22, 2024

I guess each bluetooth device normally has a unique device id. In that case you should be able to just call the functions with different device-ids. Each received data-package contains information about the device it was sent from. Likewise, in each data-package you send you can specify the device-id it should go to.

from blewinrtdll.

Jason-Chn95 avatar Jason-Chn95 commented on July 22, 2024

我猜每个蓝牙设备通常都有一个唯一的设备ID。在这种情况下,您应该能够仅使用不同的设备ID来调用函数。每个接收到的数据包都包含有关其发送设备的信息。同样,在您发送的每个数据包中,您都可以指定设备编号。

Thank you. I can only send you a star

from blewinrtdll.

Augmentaio avatar Augmentaio commented on July 22, 2024

Hi Jason, did you face this issue (SubscribeCharacteristicAsync catch) when testing with beacons? How did you solve it?

from blewinrtdll.

Jason-Chn95 avatar Jason-Chn95 commented on July 22, 2024

Hi Jason, did you face this issue (SubscribeCharacteristicAsync catch) when testing with beacons? How did you solve it?

Sorry,I didn't have that problem

from blewinrtdll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.