diff options
author | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2020-11-09 18:22:54 +0100 |
---|---|---|
committer | Dario Nieuwenhuis <dirbaio@dirbaio.net> | 2020-11-09 18:22:54 +0100 |
commit | 6a33fc8bb70a248c904c16f9b4eb594be7eb9815 (patch) | |
tree | 412cec470915e7738a7b5b64b8068b8bb91dd8ac /examples/src/bin/ble_bas_peripheral.rs | |
parent | 81b795229bed915247b2f44fedb6d09335d2ec15 (diff) | |
download | nrf-softdevice-6a33fc8bb70a248c904c16f9b4eb594be7eb9815.zip |
Add uuid handling in gatt_server proc macro.
Diffstat (limited to 'examples/src/bin/ble_bas_peripheral.rs')
-rw-r--r-- | examples/src/bin/ble_bas_peripheral.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/examples/src/bin/ble_bas_peripheral.rs b/examples/src/bin/ble_bas_peripheral.rs index b2d294b..f81cc53 100644 --- a/examples/src/bin/ble_bas_peripheral.rs +++ b/examples/src/bin/ble_bas_peripheral.rs @@ -23,9 +23,6 @@ async fn softdevice_task(sd: &'static Softdevice) { sd.run().await; } -const GATT_BAS_SVC_UUID: Uuid = Uuid::new_16(0x180F); -const GATT_BAS_BATTERY_LEVEL_CHAR_UUID: Uuid = Uuid::new_16(0x2A19); - #[nrf_softdevice::gatt_server(uuid = "180f")] struct BatteryService { #[characteristic(uuid = "2a19", read, write, notify)] @@ -35,7 +32,6 @@ struct BatteryService { #[task] async fn bluetooth_task(sd: &'static Softdevice) { let server: BatteryService = gatt_server::register(sd).dewrap(); - #[rustfmt::skip] let adv_data = &[ 0x02, 0x01, raw::BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE as u8, |