summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorUlf Lilleengen <ulf.lilleengen@gmail.com>2021-10-11 09:53:42 +0200
committerUlf Lilleengen <ulf.lilleengen@gmail.com>2021-10-11 09:53:42 +0200
commitc9a0fbf3b7d9537463756efdad7a819cfff6756e (patch)
treed37ca42314049ae0cca55ba7dcce2556bf2d2193 /examples
parent59849798ace87c9acc3ef5e5e634114dd1ce7244 (diff)
downloadnrf-softdevice-c9a0fbf3b7d9537463756efdad7a819cfff6756e.zip
Rename gatt_server to gatt_service
Diffstat (limited to 'examples')
-rw-r--r--examples/src/bin/ble_bas_peripheral.rs6
-rw-r--r--examples/src/bin/ble_peripheral_onoff.rs4
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,