diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2020-12-04 03:32:11 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2020-12-04 03:34:18 +0100 |
commit | ec66eafb4085194f9a820a26222c5074f72ecf11 (patch) | |
tree | 13c95b3a41d671ee43b0d314380db40b1d16eece /examples/src/bin/ble_l2cap_peripheral.rs | |
parent | af8a6b1cfa5d952f283ec29272aba4dfcc275d9c (diff) | |
download | nrf-softdevice-ec66eafb4085194f9a820a26222c5074f72ecf11.zip |
l2cap: allow setting rx flow control credits
Diffstat (limited to 'examples/src/bin/ble_l2cap_peripheral.rs')
-rw-r--r-- | examples/src/bin/ble_l2cap_peripheral.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/src/bin/ble_l2cap_peripheral.rs b/examples/src/bin/ble_l2cap_peripheral.rs index 3921864..bc20437 100644 --- a/examples/src/bin/ble_l2cap_peripheral.rs +++ b/examples/src/bin/ble_l2cap_peripheral.rs @@ -54,7 +54,11 @@ async fn bluetooth_task(sd: &'static Softdevice, config: peripheral::Config) { info!("advertising done!"); - let ch = unwrap!(l.listen(&conn, PSM).await); + let config = l2cap::Config { + psm: PSM, + credits: 8, + }; + let ch = unwrap!(l.listen(&conn, &config).await); info!("l2cap connected"); loop { |