Skip to content

Commit

Permalink
Merge pull request #215 from chrysn-pull-requests/scandata
Browse files Browse the repository at this point in the history
examples: Align services in scan data with provided services
  • Loading branch information
Dirbaio authored Jan 4, 2024
2 parents fa1d591 + 3e8af6c commit bd95309
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/src/bin/ble_dis_bas_peripheral_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bd95309

Please sign in to comment.