summaryrefslogtreecommitdiff
path: root/examples/src/bin/ble_peripheral_onoff.rs
diff options
context:
space:
mode:
authorAlbert Skog <mail@albertskog.se>2021-10-15 11:24:36 +0200
committerAlbert Skog <mail@albertskog.se>2021-10-15 11:24:36 +0200
commitfd48489c0ffc58c8ae02d32d9904162a2777df3c (patch)
treef86a630279aeaf89d57a2151e19872c41f75d205 /examples/src/bin/ble_peripheral_onoff.rs
parentae537dcbf67dc2366574c583740b2c7823c733d1 (diff)
downloadnrf-softdevice-fd48489c0ffc58c8ae02d32d9904162a2777df3c.zip
make CCCD write a single event
Diffstat (limited to 'examples/src/bin/ble_peripheral_onoff.rs')
-rw-r--r--examples/src/bin/ble_peripheral_onoff.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs
index e3f3943..47b9dfd 100644
--- a/examples/src/bin/ble_peripheral_onoff.rs
+++ b/examples/src/bin/ble_peripheral_onoff.rs
@@ -63,8 +63,9 @@ async fn run_bluetooth(sd: &'static Softdevice, server: &FooService) {
info!("send notification error: {:?}", e);
}
}
- FooServiceEvent::FooNotificationsEnabled => info!("notifications enabled"),
- FooServiceEvent::FooNotificationsDisabled => info!("notifications disabled"),
+ FooServiceEvent::FooCccdWrite { notifications } => {
+ info!("foo notifications: {}", notifications)
+ }
})
.await;