Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to reconnect the ble-mouse when device restarted? #37

Open
jellybins opened this issue Apr 7, 2022 · 6 comments
Open

how to reconnect the ble-mouse when device restarted? #37

jellybins opened this issue Apr 7, 2022 · 6 comments

Comments

@jellybins
Copy link

when one device connected the ble-mouse successfully,if i restart the device,it can not reconnect again and can not find the ble-mouse by using any other device at the same time, except restart the ble-mouse,3q!

@T-vK
Copy link
Owner

T-vK commented Apr 7, 2022

Only one device can be connected to the mouse at a time. Did you make sure that you disconnected all other devices and that they didn't automatically reconnect?

@jellybins
Copy link
Author

jellybins commented Apr 7, 2022

i see that only one device can be connected to the mouse at a time,but when i restart the one device(has connected the ble-mouse) it cannot reconnect again. and i tried to find the ble-mouse failed use any other devices at that time(to do this is just for confirm is the ble-mouse normal) .

@jellybins
Copy link
Author

i resolve the problem by another way(when disconnect more than 5 times soft restart the dev board);and i saw the bleMouse.end() is an empty func do nothing.

@ywz978020607
Copy link

But how to disconnect all devices in esp32? Is there any api i am missing?

@ywz978020607
Copy link

i resolve the problem by another way(when disconnect more than 5 times soft restart the dev board);and i saw the bleMouse.end() is an empty func do nothing.

Wow, but how to soft restart? Could you show the code? soft restart will clear the device's info? When I restart the board, but the board will connect to PC automatically, but i want to disconnect by esp32 through pressing a button..

@jellybins
Copy link
Author

jellybins commented Jun 30, 2022

i resolve the problem by another way(when disconnect more than 5 times soft restart the dev board);and i saw the bleMouse.end() is an empty func do nothing.

Wow, but how to soft restart? Could you show the code? soft restart will clear the device's info? When I restart the board, but the board will connect to PC automatically, but i want to disconnect by esp32 through pressing a button..

you should create a new issue,We're not talking about the same problem,and soft restart do not clear the info of device has connected。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants