mirror of
https://github.com/T-vK/ESP32-BLE-Keyboard.git
synced 2026-02-20 01:41:32 +01:00
Set ScanResponse to off so the advertising will actually advertise the name
This commit is contained in:
@@ -149,6 +149,7 @@ void BleKeyboard::taskServer(void* pvParameter) {
|
||||
BLEAdvertising *pAdvertising = pServer->getAdvertising();
|
||||
pAdvertising->setAppearance(HID_KEYBOARD);
|
||||
pAdvertising->addServiceUUID(bleKeyboardInstance->hid->hidService()->getUUID());
|
||||
pAdvertising->setScanResponse(false);
|
||||
pAdvertising->start();
|
||||
bleKeyboardInstance->hid->setBatteryLevel(bleKeyboardInstance->batteryLevel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user