Skip to content

Commit 4ae7815

Browse files
committed
feat(nimble): Enable legacy pdu during ext advertising
1 parent 56c551b commit 4ae7815

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

components/bluetooth/ble_profiles/esp/ble_ota/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@
7373

7474
* BLE-OTA:
7575
* Add support for Delta OTA.
76+
77+
## v0.1.14 - 2024-11-21
78+
* BLE-OTA:
79+
* Add support for enabling BLE 5.0 for NimBLE

components/bluetooth/ble_profiles/esp/ble_ota/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "0.1.13"
1+
version: "0.1.14"
22
targets:
33
- esp32
44
- esp32c3

components/bluetooth/ble_profiles/esp/ble_ota/src/nimble_ota.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* SPDX-FileCopyrightText: 2019-2023 Espressif Systems (Shanghai) CO LTD
2+
* SPDX-FileCopyrightText: 2019-2024 Espressif Systems (Shanghai) CO LTD
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -655,14 +655,15 @@ esp_ble_ota_ext_advertise(void)
655655

656656
/* enable connectable advertising */
657657
params.connectable = 1;
658+
params.scannable = 1;
658659

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

662663
params.primary_phy = BLE_HCI_LE_PHY_1M;
663-
params.secondary_phy = BLE_HCI_LE_PHY_2M;
664-
//params.tx_power = 127;
664+
params.secondary_phy = BLE_HCI_LE_PHY_1M;
665665
params.sid = 1;
666+
params.legacy_pdu = 1;
666667

667668
params.itvl_min = BLE_GAP_ADV_FAST_INTERVAL1_MIN;
668669
params.itvl_max = BLE_GAP_ADV_FAST_INTERVAL1_MIN;

0 commit comments

Comments
 (0)