Datasheet

Related Information
Generic Access Profile (https://adafru.it/vaL): This page contains the official list of assigned numbers for the 'Data'
type field. Data is inserted into the advertising packet by supplying a valid 'data' type, optionally followed by a
properly formatted payload corresponding to the selected value.
Example
For practical example code, see the Examples section later on in this guide. The snippet below is provided for
illustration purposes, but advertising should be examined in the context of a real use case since it varies from one
setup to the next!
typedef void (*stop_callback_t) (void);
typedef void (*slow_callback_t) (void);
void setType(uint8_t adv_type);
void setFastTimeout(uint16_t sec);
void setSlowCallback(slow_callback_t fp);
void setStopCallback(stop_callback_t fp);
void setInterval (uint16_t fast, uint16_t slow);
void setIntervalMS(uint16_t fast, uint16_t slow);
uint16_t getInterval(void);
bool setBeacon(BLEBeacon& beacon);
bool setBeacon(EddyStoneUrl& eddy_url);
bool isRunning(void);
void restartOnDisconnect(bool enable);
bool start(uint16_t timeout = 0);
bool stop (void);
© Adafruit Industries https://learn.adafruit.com/bluefruit-nrf52-feather-learning-guide Page 97 of 175