sharpbrick / powered-up

.NET implementation of the LEGO PoweredUp Protocol
MIT License
99 stars 19 forks source link

Remove device from the Windows List of known devices!!!! #170

Closed Steffel closed 3 years ago

Steffel commented 3 years ago

Hi, great project. I tried to run an example for the (Boost-) Move Hub with Firmware 2.0.00.0017 but it didnt work - it seems to stop at await expectedDevicesCompletedTask; With my own code (.NET 5, WinRT) i could catch an advertisement and identify device, service and characteristics but could not set up a notification - failed with "Status unreachable". Did you get your example code work for - say example = new Example.ExampleMoveHubInternalTachoMotorControl(); ?

Besides: A few days ago i got an answer from lego support that they will not publish the protocol for 51515 to "protect their products".

Steffel commented 3 years ago

I found the problem: Windows already paired with the device. Removing it from the Bluetooth settings first made the example work.

tthiery commented 3 years ago

If you have any questions or suggestions, feel free to raise issues!

Steffel commented 3 years ago

I just wondered if the bluetooth protocol is able to give a hint that someone else has his "hands on the device" so it is possible to throw an appropriate exception. I had the above issue several days without any idea what is going wrong.

tthiery commented 3 years ago

Feel free to create a Pull Request 😀