summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_l2cap_peripheral.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2021-06-19 03:21:36 +0200
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2021-06-19 03:59:51 +0200
commited4d42f88622c31003e5594afecbdb31441657f4 (patch)
tree2890a9d77aa29fb89cbe678be1dfcf4194a85f30 /examples/src/bin/ble_l2cap_peripheral.rs
parentf679f23dfba4e8b8c76fe5577498bb6f9434846f (diff)
downloadnrf-softdevice-ed4d42f88622c31003e5594afecbdb31441657f4.zip
Add non-connectable advertisements.
Diffstat (limited to 'examples/src/bin/ble_l2cap_peripheral.rs')
-rw-r--r--examples/src/bin/ble_l2cap_peripheral.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs
index 0ab7369..d752ef7 100644
--- a/examples/src/bin/ble_l2cap_peripheral.rs
+++ b/examples/src/bin/ble_l2cap_peripheral.rs
@@ -51,7 +51,7 @@ async fn bluetooth_task(sd: &'static Softdevice) {
adv_data,
scan_data,
};
- let conn = unwrap!(peripheral::advertise(sd, adv, &config).await);
+ let conn = unwrap!(peripheral::advertise_connectable(sd, adv, &config).await);
info!("advertising done!");