ESP32-BLE-Mouse icon indicating copy to clipboard operation
ESP32-BLE-Mouse copied to clipboard

how to reconnect the ble-mouse when device restarted?

Open jellybins opened this issue 2 years ago • 6 comments

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!

jellybins avatar Apr 07 '22 06:04 jellybins

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?

T-vK avatar Apr 07 '22 07:04 T-vK

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 avatar Apr 07 '22 07:04 jellybins

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.

jellybins avatar Apr 15 '22 05:04 jellybins

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

ywz978020607 avatar Jun 29 '22 15:06 ywz978020607

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..

ywz978020607 avatar Jun 29 '22 15:06 ywz978020607

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。

jellybins avatar Jun 30 '22 06:06 jellybins