Datasheet

BLEAdvertising
'Advertising' is what makes your Bluetooth Low Energy devices visible to other devices in listening range. The radio
sends out specially formatter advertising packets that contain information like the device name, whether you can
connect to the device (or if it only advertises), etc.
You can also include custom data in the advertising packet, which is essential how beacons work.
The
BLEAdvertisingData and BLEAdvertising
classes exposes a number of helper functions to make it easier to create
well-formatted advertising packets, as well as to use the Scan Response option, which is an optional secondary
advertising packet that can be requested by a Central device. (This gives you another 27 bytes of advertising data, but
isn't sent out automatically like the main advertising packet.).
This two advertising packets are accessible via the parent AdafruitBluefruit class, calling ' Bluefruit.Advertising.* ' and
' Bluefruit.ScanResponse.* ' from your user sketches.
For examples of using these helper classes, see any of the examples later on in this guide, since all devices will
advertise as part of the startup process.
API
The BLEAdvertisingData class has the following public API:
The Bluefruit nRF52 Feather codebase is in an early BETA stage and is undergoing active development
based on customer feedback and testing. As such, the class documentation here is incomplete, and you
should consult the Github repo for the latest code and API developments: https://goo.gl/LdEx62
© Adafruit Industries https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide Page 95 of 175