mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2025-07-31 19:04:25 +02:00
Fix extended server example - data too long error
This commit is contained in:
@@ -65,8 +65,7 @@ class AdvertisingCallbacks : public NimBLEExtAdvertisingCallbacks {
|
||||
}
|
||||
} advertisingCallbacks;
|
||||
|
||||
extern "C"
|
||||
void app_main(void) {
|
||||
extern "C" void app_main(void) {
|
||||
/** Initialize NimBLE and set the device name */
|
||||
NimBLEDevice::init("Extended advertiser");
|
||||
|
||||
@@ -105,7 +104,6 @@ void app_main(void) {
|
||||
"This example message is 226 bytes long "
|
||||
"and is using CODED_PHY for long range."));
|
||||
|
||||
extAdv.setCompleteServices16({NimBLEUUID(SERVICE_UUID)});
|
||||
extAdv.setName("Extended advertiser");
|
||||
|
||||
/** When extended advertising is enabled `NimBLEDevice::getAdvertising` returns a pointer to `NimBLEExtAdvertising */
|
||||
|
Reference in New Issue
Block a user