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

How can i subscribe to multiple BLE characteristics? #37

Open damhirgomez opened 1 year ago

damhirgomez commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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