diff options
author | Ulf Lilleengen <ulf.lilleengen@gmail.com> | 2021-10-07 08:29:36 +0200 |
---|---|---|
committer | Ulf Lilleengen <ulf.lilleengen@gmail.com> | 2021-10-07 08:29:36 +0200 |
commit | 714f3ad657a65315a70437fe133ff088fa2bac11 (patch) | |
tree | d14bd6436340fc1459f0cba16084d5216114998c /examples | |
parent | ded290c788d79a9c90059c8eceae2e442116ad3c (diff) | |
download | nrf-softdevice-714f3ad657a65315a70437fe133ff088fa2bac11.zip |
Rename back to on_write
Diffstat (limited to 'examples')
-rw-r--r-- | examples/src/bin/ble_bas_peripheral.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/bin/ble_bas_peripheral.rs b/examples/src/bin/ble_bas_peripheral.rs index c8b70a0..4fc773d 100644 --- a/examples/src/bin/ble_bas_peripheral.rs +++ b/examples/src/bin/ble_bas_peripheral.rs @@ -60,7 +60,7 @@ async fn bluetooth_task(sd: &'static Softdevice) { info!("advertising done!"); // Run the GATT server on the connection. This returns when the connection gets disconnected. - let res = gatt_server::run(&conn, |e| match server.on_event(e) { + let res = gatt_server::run(&conn, |e| match server.on_write(e) { Some(BatteryServiceEvent::BatteryLevelWrite(val)) => { info!("wrote battery level: {}", val); if let Err(e) = server.battery_level_notify(&conn, val + 1) { |