Skip to content

Commit

Permalink
allow to configure custom advertisement mode as connectable
Browse files Browse the repository at this point in the history
  • Loading branch information
dakhnod committed Jul 1, 2024
1 parent 79e9634 commit a387b6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ble/sensor_ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ void custom_data_advertisement_start(){

static ble_gap_adv_params_t m_adv_params = {
.type = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND,
#endif
.p_peer_addr = NULL,
.fp = BLE_GAP_ADV_FP_ANY,
.interval = ADVERTISEMENT_INTERVAL_CUSTOM_DATA,
Expand Down
6 changes: 6 additions & 0 deletions src/config/feature_config.template.h.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@
#define ADVERTISEMENT_CUSTOM_DATA 0xhex, 0xstring, 0xhere
#endif

// <e>Connectable in custom advertisement mode
#ifndef CUSTOM_ADVERTISEMENT_CONNECTABLE
#define CUSTOM_ADVERTISEMENT_CONNECTABLE 0
#endif
// </e>

#endif
// </e>

Expand Down

0 comments on commit a387b6b

Please sign in to comment.