Skip to content

Commit

Permalink
Merge branch 'feat/add_legacy_pdu_ext_support' into 'master'
Browse files Browse the repository at this point in the history
feat(nimble): Enable legacy pdu during ext advertising

See merge request ae_group/esp-iot-solution!1108
  • Loading branch information
rahult-github committed Nov 26, 2024
2 parents 39479f0 + 4ae7815 commit bb059e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions components/bluetooth/ble_profiles/esp/ble_ota/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,7 @@

* BLE-OTA:
* Add support for Delta OTA.

## v0.1.14 - 2024-11-21
* BLE-OTA:
* Add support for enabling BLE 5.0 for NimBLE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "0.1.13"
version: "0.1.14"
targets:
- esp32
- esp32c3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2019-2023 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -655,14 +655,15 @@ esp_ble_ota_ext_advertise(void)

/* enable connectable advertising */
params.connectable = 1;
params.scannable = 1;

/* advertise using random addr */
params.own_addr_type = BLE_OWN_ADDR_PUBLIC;

params.primary_phy = BLE_HCI_LE_PHY_1M;
params.secondary_phy = BLE_HCI_LE_PHY_2M;
//params.tx_power = 127;
params.secondary_phy = BLE_HCI_LE_PHY_1M;
params.sid = 1;
params.legacy_pdu = 1;

params.itvl_min = BLE_GAP_ADV_FAST_INTERVAL1_MIN;
params.itvl_max = BLE_GAP_ADV_FAST_INTERVAL1_MIN;
Expand Down

0 comments on commit bb059e1

Please sign in to comment.