From 769a98f1f4c221cbf69c09d57b98560ae7b7b8f6 Mon Sep 17 00:00:00 2001 From: geeksville Date: Fri, 17 Jul 2020 09:13:47 -0700 Subject: [PATCH] nrf52 ble - move service in into the scan info --- src/nrf52/NRF52Bluetooth.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nrf52/NRF52Bluetooth.cpp b/src/nrf52/NRF52Bluetooth.cpp index 007113de..71e21320 100644 --- a/src/nrf52/NRF52Bluetooth.cpp +++ b/src/nrf52/NRF52Bluetooth.cpp @@ -91,11 +91,13 @@ void startAdv(void) Bluefruit.Advertising.addFlags(BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE); // IncludeService UUID - Bluefruit.ScanResponse.addService(meshBleService); + // Bluefruit.ScanResponse.addService(meshBleService); Bluefruit.ScanResponse.addTxPower(); + Bluefruit.ScanResponse.addName(); // Include Name - Bluefruit.Advertising.addName(); + // Bluefruit.Advertising.addName(); + Bluefruit.Advertising.addService(meshBleService); /* Start Advertising * - Enable auto advertising if disconnected