diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/src/bin/ble_bas_peripheral.rs | 6 | ||||
-rw-r--r-- | examples/src/bin/ble_peripheral_onoff.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/src/bin/ble_bas_peripheral.rs b/examples/src/bin/ble_bas_peripheral.rs index 2f0328b..31a258e 100644 --- a/examples/src/bin/ble_bas_peripheral.rs +++ b/examples/src/bin/ble_bas_peripheral.rs @@ -15,7 +15,7 @@ use embassy::executor::Executor; use embassy::util::Forever; use nrf_softdevice::ble::{ - gatt_server::{self, Server}, + gatt_server::{self, Service}, peripheral, }; use nrf_softdevice::{raw, Softdevice}; @@ -27,13 +27,13 @@ async fn softdevice_task(sd: &'static Softdevice) { sd.run().await; } -#[nrf_softdevice::gatt_server(uuid = "180f")] +#[nrf_softdevice::gatt_service(uuid = "180f")] struct BatteryService { #[characteristic(uuid = "2a19", read, notify)] battery_level: u8, } -#[nrf_softdevice::gatt_server(uuid = "9e7312e0-2354-11eb-9f10-fbc30a62cf38")] +#[nrf_softdevice::gatt_service(uuid = "9e7312e0-2354-11eb-9f10-fbc30a62cf38")] struct FooService { #[characteristic(uuid = "9e7312e0-2354-11eb-9f10-fbc30a63cf38", read, write, notify)] foo: u16, diff --git a/examples/src/bin/ble_peripheral_onoff.rs b/examples/src/bin/ble_peripheral_onoff.rs index 7670c44..3666055 100644 --- a/examples/src/bin/ble_peripheral_onoff.rs +++ b/examples/src/bin/ble_peripheral_onoff.rs @@ -19,7 +19,7 @@ use embassy_nrf::interrupt::Priority; use futures::pin_mut; use nrf_softdevice::ble::{ - gatt_server::{self, Server}, + gatt_server::{self, Service}, peripheral, }; use nrf_softdevice::{raw, Softdevice}; @@ -31,7 +31,7 @@ async fn softdevice_task(sd: &'static Softdevice) { sd.run().await; } -#[nrf_softdevice::gatt_server(uuid = "9e7312e0-2354-11eb-9f10-fbc30a62cf38")] +#[nrf_softdevice::gatt_service(uuid = "9e7312e0-2354-11eb-9f10-fbc30a62cf38")] struct FooService { #[characteristic(uuid = "9e7312e0-2354-11eb-9f10-fbc30a63cf38", read, write, notify)] foo: u16, |