esp-nimble-cpp  1.4.1
Bluetooth 5.x features

About extended advertising

Extended advertising allows for much more capability and flexibility.

  • Allows for 251 bytes of advertisement data and up to 1650 bytes when chained (configuration dependant) vs 31.
  • New PHY's (physical layers) that allow for faster data rate (2M PHY) or long range/slower data rates (CODED PHY) as well as the original 1M PHY.
  • New periodic advertising, allowing the scanning device to sync with the advertisements of a beacon. This allows for the scanning device to sleep or perform other tasks before the next expected advertisement is sent, preserving cpu cycles and power (To be implemented).

Enabling extended advertising

Extended advertising is supported when enabled with the config option CONFIG_BT_NIMBLE_EXT_ADV set to a value of 1. This is done in menuconfig under Component config > Bluetooth > NimBLE options > Enable extended advertising, or set in nimconfig.h for Arduino, or in build_flags in PlatformIO.

When enabled the following will occur: