BleWinrtDll icon indicating copy to clipboard operation
BleWinrtDll copied to clipboard

How can i subscribe to multiple BLE characteristics?

Open damhirgomez opened this issue 3 years ago • 2 comments

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.

damhirgomez avatar Sep 18 '22 21:09 damhirgomez

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.

adabru avatar Sep 27 '22 10:09 adabru

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

damhirgomez avatar Oct 25 '22 03:10 damhirgomez