nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ BT_LE_ADV_PROV_AD_PROVIDER_REGISTER

#define BT_LE_ADV_PROV_AD_PROVIDER_REGISTER (   pname,
  get_data_fn 
)

#include <include/bluetooth/adv_prov.h>

Value:
STRUCT_SECTION_ITERABLE_ALTERNATE(bt_le_adv_prov_ad, bt_le_adv_prov_provider, pname) = { \
.get_data = get_data_fn, \
}
Definition: adv_prov.h:86

Register advertising data provider.

The macro statically registers an advertising data provider. The provider appends data to advertising packet managed by the Bluetooth LE advertising providers subsystem.

Parameters
pnameProvider name.
get_data_fnFunction used to get provider's advertising data.