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

Device not advertising #6

Open
Bobj6 opened this issue Aug 9, 2021 · 1 comment
Open

Device not advertising #6

Bobj6 opened this issue Aug 9, 2021 · 1 comment

Comments

@Bobj6
Copy link

Bobj6 commented Aug 9, 2021

Hi everybody,

I have a issue with the esp32, as soon as the device is reset the communication via Bluetooth seems to stop working.
I have to disconnect the Bluetooth connection on the computer and start searching for the device again (and reconnect it).
Appearantly there is an command in the original BLEKeyboard library which is called bleKeyboard.startAdvertising() this is found on the following page https://github.com/T-vK/ESP32-BLE-Keyboard/issues/56.

So my issue is that some commands are not compatible with the BLECombo library.
Any ideas of how to fix this?

I also tried to modify BleKeyboard bleKeyboard("Bluetooth Device Name", "Bluetooth Device Manufacturer", 100);
but i had no succes with this, if somebody knows how to use this with the Combo library that would be nice.

Thank you in advance,
Bob

@dbhaig
Copy link

dbhaig commented Sep 24, 2021

In BleConnectionStatus.cpp, try adding a line to the end of void BleConnectionStatus::onDisconnect(BLEServer* pServer) routine:

pServer->getAdvertising()->start();

Don

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

2 participants