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

How can i subscribe to multiple BLE characteristics? #37

Open
damhirgomez opened this issue Sep 18, 2022 · 2 comments
Open

How can i subscribe to multiple BLE characteristics? #37

damhirgomez opened this issue Sep 18, 2022 · 2 comments

Comments

@damhirgomez
Copy link

first for all, thanks for this DLL, is amazing, but i need to suscribe to multiple characteristics from a xiao sense ble, can you help to know how can i made this? sorry for my english and thanks for your reply.

@adabru
Copy link
Owner

adabru commented Sep 27, 2022

Hi @damhirgomez , you can call

BleApi.SubscribeCharacteristic(selectedDeviceId, selectedServiceId, selectedCharacteristicId, false);

for each desired characteristic and check the res.uuid after the BleApi.PollCharacteristic(out res, false) call.

@damhirgomez
Copy link
Author

Thanks 4 ur help!, really works, i have other question, how can i do a reScan?, in the first scan for some reason the Name of the Ble devices is = "", so i need to close the app and start again to see devicesName, thank again

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