ESP32-BLE-Combo
ESP32-BLE-Combo copied to clipboard
Device not advertising
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
In BleConnectionStatus.cpp, try adding a line to the end of void BleConnectionStatus::onDisconnect(BLEServer* pServer) routine:
pServer->getAdvertising()->start();
Don