Skip to content

Commit 033c7c2

Browse files
committed
Fix extended server example - data too long error
1 parent d134276 commit 033c7c2

File tree

1 file changed

+1
-3
lines changed
  • examples/Bluetooth_5/NimBLE_extended_server/main

1 file changed

+1
-3
lines changed

examples/Bluetooth_5/NimBLE_extended_server/main/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ class AdvertisingCallbacks : public NimBLEExtAdvertisingCallbacks {
6565
}
6666
} advertisingCallbacks;
6767

68-
extern "C"
69-
void app_main(void) {
68+
extern "C" void app_main(void) {
7069
/** Initialize NimBLE and set the device name */
7170
NimBLEDevice::init("Extended advertiser");
7271

@@ -105,7 +104,6 @@ void app_main(void) {
105104
"This example message is 226 bytes long "
106105
"and is using CODED_PHY for long range."));
107106

108-
extAdv.setCompleteServices16({NimBLEUUID(SERVICE_UUID)});
109107
extAdv.setName("Extended advertiser");
110108

111109
/** When extended advertising is enabled `NimBLEDevice::getAdvertising` returns a pointer to `NimBLEExtAdvertising */

0 commit comments

Comments
 (0)