BleWinrtDll icon indicating copy to clipboard operation
BleWinrtDll copied to clipboard

Problem with disconnection from one BLE device and connection to another one

Open nmitrak opened this issue 1 year ago • 1 comments

Hi @adabru , thank you very much for precious help. I have another problem which i cannot solve. I use your library for Unity Editor and @marianylund 's library for BLE connection while using the Hololens 2. I have a Hololens 2 and 2 BLE devices., a microbit and an arduino. When my Mixed Reality application starts on HoloLens 2 and i connect via bluetooth to the microbit everything works like a charm, information is exchanged between the two devices and there is no problem. The problem begins when i want to disconnect from the microbit and connect to the arduino. HL2 cannot connect whatever i tried. I also implemented the disconnect function except from the Quit() function from here #22 and recompiled the dll but Hololens 2 still says device not found after using this disconnect function. The funny thing is that if i want to reconnect to the microbit again, no problem arises, HL2 finds it connects to it again. The same thing happens if the app starts and connect for the first time to the arduino , HL2 then cannot connect to the microbit. I even tried unloading and reloading the library but the problem persists It seems like the deviceId is locked on the first device. Is there any idea about what i am doing wrong? Thank you very much in advance!

nmitrak avatar Dec 15 '24 08:12 nmitrak