summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-04 17:08:29 +0100
committerDario Nieuwenhuis <dirbaio@dirbaio.net>2020-12-09 17:12:38 +0100
commite25d463303ba6449f690ea7f532e7a1d47395b30 (patch)
tree95269cfee76e105eccaee3f198c567b3324a657e /examples
parentf585270a5c5bef00a6f7e88524f70689b9a64a75 (diff)
downloadnrf-softdevice-e25d463303ba6449f690ea7f532e7a1d47395b30.zip
central: add support for connecting to multiple addrs at once
Diffstat (limited to 'examples')
-rw-r--r--examples/src/bin/ble_bas_central.rs2
-rw-r--r--examples/src/bin/ble_l2cap_central.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/bin/ble_bas_central.rs b/examples/src/bin/ble_bas_central.rs
index 6bf9a1d..13f6fb5 100644
--- a/examples/src/bin/ble_bas_central.rs
+++ b/examples/src/bin/ble_bas_central.rs
@@ -33,7 +33,7 @@ struct BatteryServiceClient {
#[task]
async fn ble_central_task(sd: &'static Softdevice) {
- let addrs = &[Address::new(
+ let addrs = &[&Address::new(
AddressType::RandomStatic,
[0x06, 0x6b, 0x71, 0x2c, 0xf5, 0xc0],
)];
diff --git a/examples/src/bin/ble_l2cap_central.rs b/examples/src/bin/ble_l2cap_central.rs
index 5c1b856..bb9d974 100644
--- a/examples/src/bin/ble_l2cap_central.rs
+++ b/examples/src/bin/ble_l2cap_central.rs
@@ -67,7 +67,7 @@ async fn ble_central_task(sd: &'static Softdevice) {
let address = unwrap!(res);
info!("Scan found address {:?}", address);
- let addrs = &[address];
+ let addrs = &[&address];
let config = central::Config::default();
let conn = unwrap!(central::connect(sd, addrs, &config).await);