From f7d6f3ff6346b5a6adf5ec9b4ee4c8f62728f7c7 Mon Sep 17 00:00:00 2001 From: aovestdipaperino Date: Sun, 18 Oct 2020 17:12:22 -0700 Subject: [PATCH] Set ScanResponse to off so the advertising will actually advertise the name --- BleKeyboard.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/BleKeyboard.cpp b/BleKeyboard.cpp index 5b6ccb9..e98af09 100644 --- a/BleKeyboard.cpp +++ b/BleKeyboard.cpp @@ -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);