From 08c6b21fd2313f38b4b2d89e7e5273fc56e801eb Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Tue, 8 Aug 2023 06:58:21 +0000 Subject: [PATCH] Restyled by prettier-markdown --- docs/guides/esp32/ble.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/guides/esp32/ble.md b/docs/guides/esp32/ble.md index eb37a5126fe8c2..dee583984b0ed5 100644 --- a/docs/guides/esp32/ble.md +++ b/docs/guides/esp32/ble.md @@ -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 @@ -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.