Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error subscribing to Characteristic #58

Open
arafi123 opened this issue Dec 27, 2023 · 3 comments
Open

Error subscribing to Characteristic #58

arafi123 opened this issue Dec 27, 2023 · 3 comments

Comments

@arafi123
Copy link

Hello,
I am trying to connect to BLE Weight scale (Service 0x181D). When I subscribe to characteristic , I get following error:

BleWinrtDll.cpp:501 SubscribeCharacteristicAsync catch: The attribute requires authentication before it can be read or written.

How can I fix this ? What needs to added as authentication parameter in code so that the data can be read from the device ?

I look forward to your support.

Kind regards

@adabru
Copy link
Owner

adabru commented Dec 31, 2023

Hi @arafi123 , maybe you need to pair the device. Maybe related: #7

@arafi123
Copy link
Author

arafi123 commented Jan 2, 2024

You mean pair it with PC ? For this BLE Weight scale, I get the same authentication error also with the Microsot BLE sample so I assume may be the device is encrypted or something.

@adabru
Copy link
Owner

adabru commented Jan 7, 2024

Yes, I meant pairing it with the PC. Did you try that? I think you can do it via Windows Settings, I'm not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants