We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d2d2c3d + 0fba3ec commit 15cef96Copy full SHA for 15cef96
BLE_Button/source/main.cpp
@@ -75,13 +75,9 @@ class BatteryDemo : ble::Gap::EventHandler {
75
ble::adv_interval_t(ble::millisecond_t(1000))
76
);
77
78
- uint8_t adv_buffer[ble::LEGACY_ADVERTISING_MAX_SIZE];
79
-
80
- ble::AdvertisingDataBuilder adv_data_builder(adv_buffer);
81
82
- adv_data_builder.setFlags();
83
- adv_data_builder.setLocalServiceList(mbed::make_Span(&_button_uuid, 1));
84
- adv_data_builder.setName(DEVICE_NAME);
+ _adv_data_builder.setFlags();
+ _adv_data_builder.setLocalServiceList(mbed::make_Span(&_button_uuid, 1));
+ _adv_data_builder.setName(DEVICE_NAME);
85
86
/* Setup advertising */
87
0 commit comments