Skip to content

Commit

Permalink
Restyled by prettier-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and jadhavrohit924 committed Aug 10, 2023
1 parent b1981fd commit 08c6b21
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions docs/guides/esp32/ble.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

# Nimble: scan response

The `ConfigureScanResponseData` API is used to configure the
scan response data for advertising in a Bluetooth Low Energy (BLE) application
based on the NimBLE BLE stack. Scan response data is additional data that a BLE
peripheral device can include in its advertising packets to provide more
information about itself. This API allows you to set the scan response data that
will be included in the advertising packets.
The `ConfigureScanResponseData` API is used to configure the scan response data
for advertising in a Bluetooth Low Energy (BLE) application based on the NimBLE
BLE stack. Scan response data is additional data that a BLE peripheral device
can include in its advertising packets to provide more information about itself.
This API allows you to set the scan response data that will be included in the
advertising packets.

## Usage

```
uint8_t scanResponse[31]; // 0x05, 0x09, a, b, c, d
Expand All @@ -24,4 +25,5 @@ uint8_t scanResponse[31]; // 0x05, 0x09, a, b, c, d
chip::DeviceLayer::Internal::BLEMgrImpl().ConfigureScanResponseData(data);
}
```

Note: ScanResponse should be configure before device starts advertisement.

0 comments on commit 08c6b21

Please sign in to comment.