diff options
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) { |