From 3e8af6c8c415b89e284b77c00eaaee63abe2d9f5 Mon Sep 17 00:00:00 2001 From: chrysn Date: Thu, 4 Jan 2024 14:46:06 +0100 Subject: [PATCH] examples: Align services in scan data with provided services --- examples/src/bin/ble_dis_bas_peripheral_builder.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/src/bin/ble_dis_bas_peripheral_builder.rs b/examples/src/bin/ble_dis_bas_peripheral_builder.rs index 5d96c101..29f0213b 100644 --- a/examples/src/bin/ble_dis_bas_peripheral_builder.rs +++ b/examples/src/bin/ble_dis_bas_peripheral_builder.rs @@ -231,12 +231,17 @@ async fn main(spawner: Spawner) { #[rustfmt::skip] let adv_data = &[ 0x02, 0x01, raw::BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE as u8, - 0x03, 0x03, 0x09, 0x18, + 0x03, + 0x02, /* Incomplete List of 16-bit Service Class UUIDs */ + 0x0f, 0x18, /* Battery service */ 0x0a, 0x09, b'H', b'e', b'l', b'l', b'o', b'R', b'u', b's', b't', ]; #[rustfmt::skip] let scan_data = &[ - 0x03, 0x03, 0x09, 0x18, + 0x05, + 0x03 /* Complete List of 16-bit Service Class UUIDs */, + 0x0a, 0x18, /* Device Information service */ + 0x0f, 0x18, /* Battery service */ ]; loop {