lemmingDev / ESP32-BLE-Gamepad

Bluetooth LE Gamepad library for the ESP32
Other
1.04k stars 172 forks source link

A way to start and stop BLE Service #224

Closed DrSimgear closed 1 month ago

DrSimgear commented 1 month ago

Hi, I am looking to be able to start and stop the ble service. I need it so I can plug a usb cable in and for the device to switch from bluetooth to usb automatically when usb is detected instead of having two gamepad devices interfering. Someone else seems to have figured it out. https://www.esp32.com/viewtopic.php?t=32972

DrSimgear commented 1 month ago

A easier solution that still works good might be like this https://github.com/h2zero/NimBLE-Arduino/issues/312. When usb is detected then ble stops advertising and device gets disconnected automatically?