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