h2zero / NimBLE-Arduino

A fork of the NimBLE library structured for compilation with Arduino, for use with ESP32, nRF5x.
https://h2zero.github.io/NimBLE-Arduino/
Apache License 2.0
672 stars 138 forks source link

Connecting ESP32 to Bluetooth mouse #516

Open maxbrito500 opened 1 year ago

maxbrito500 commented 1 year ago

Hello,

Thank you for creating and maintaining this wonderful library. I've been trying in the past days to connect to a bluetooth mouse but I'm still not familiar with the pairing specifically with mouses. There is an example here: https://github.com/h2zero/NimBLE-Arduino/blob/release/1.4/examples/NimBLE_Client/NimBLE_Client.ino but I'm still not able to pair with generic mouses.

The peripheral service UUI is 1812 and I see this advertised by the mouse but then I'm getting a lot of compilation errors and unable to move forward.

Would it be possible to provide an example connecting a bluetooth mouse to arduino?

My next step (for myself) is to include integration with LVGL so that more people can use their mouse as input device when the screen does not have touch support.

Many thanks!

h2zero commented 1 month ago

Unfortunately I don't have any idea as to what could be the issue here. I'll leave this open and hopefully someone can provide an answer.