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

MacOS (10.15.1 (19B88)) "Disconnect" doesn't work from Bluetooth in menu bar

Open nikolayrantsev opened this issue 5 years ago • 8 comments

Hi, Thank you so much for the library and all the value provided, I'm testing on Mac, and observed the interesting issue, Please help to resolve:

Bluetooth in menu bar -> Devices -> "ESP32 device name" -> Disconnect (only this option is available) Clicking on Disconnect here - my device reconnects automatically immediately

2buttons_led | Arduino 1 8 13 2020-08-08 18-02-28 Additional info: When you go to Apple menu/System Preferences/Bluetooth only Remove option (not Disconnect) available for the connected device Bluetooth 2020-08-08 18-01-21

nikolayrantsev avatar Aug 08 '20 15:08 nikolayrantsev

Unfortunately I don't have any Apple devices, so I can't really help too much. Does this issue occur on other devices too (Windows or Android maybe)?

T-vK avatar Aug 08 '20 17:08 T-vK

Hi, Thanks for the feedback, I've checked on Windows (Bootcamp) - there is no feature like Disconnect - only Remove, So, this Apple's specific I guess,

Btw - iOS device can do only "Forget this device" no Disconnect as well,

nikolayrantsev avatar Aug 08 '20 17:08 nikolayrantsev

In that case, I can't really help. Maybe someone else with a Mac OS device can jump in.

T-vK avatar Aug 08 '20 17:08 T-vK

Thank you, Hope, somebody will be interested in this!

nikolayrantsev avatar Aug 08 '20 17:08 nikolayrantsev

Hi again, Here are my findings regarding this behavior. I've flased the sample esp-idf/examples/bluetooth/esp_hid_device/ Bluetooth connectivity has another behavior:

  1. It can be disconnected via the clicking on the option in the menu bar: Bluetooth 2020-08-14 18-21-41
  2. However, the device disappears from the menu at all Bluetooth 2020-08-14 18-22-32
  3. And can be only removed, not connected again Monosnap 2020-08-14 18-23-14

I know it's not Arduino ( but ESP-IDF) sample. The purpose was just to check the Connect/Disconnect/Remove options functioning.

My guess: there are settings in kind of ESP32 core libraries on how to handle the connection. Appreciate somebody's effort to dive into the topic and tune this to make it finally ideal! Thanks!

nikolayrantsev avatar Aug 14 '20 15:08 nikolayrantsev

Can you try this again with the latest release (0.2.2), please?

T-vK avatar Oct 20 '20 18:10 T-vK

Thanks, everyone for the effort! Name of the device recognizing fine (as defined in the code) the first time you are connecting it on macOS, - fixed/improved. "Disconnect" still has the same behavior as early - reconnects immediately after clicking on the Disconnect menu item,

nikolayrantsev avatar Oct 21 '20 17:10 nikolayrantsev

Thank you for testing this again. I was hoping that the changes may have also had an effect on that reconnecting behavior. I guess not. Hopefully someone in the future can come up with a fix.

T-vK avatar Oct 21 '20 18:10 T-vK