Skip to content

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

@nmitrak

Description

@nmitrak

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions