ソースを参照

Merge branch 'feature/add_periodic_helper_macros' into 'master'

Nimble: Add helper macros to set interval min / max for periodic adv

See merge request espressif/esp-idf!21575
Rahul Tank 3 年 前
コミット
f3012849e8

+ 1 - 1
components/bt/host/nimble/nimble

@@ -1 +1 @@
-Subproject commit df2b82880e7ff25d7ed93ce1fc89d813d00b6810
+Subproject commit 9a355b2b597a66868aed37e1ebccb0c274aaa252

+ 2 - 0
components/bt/porting/nimble/include/nimble/hci_common.h

@@ -1214,6 +1214,8 @@ struct ble_hci_vs_rd_static_addr_rp {
 #define BLE_HCI_ADV_ITVL_DEF                (0x800)         /* 1.28 seconds */
 #define BLE_HCI_ADV_CHANMASK_DEF            (0x7)           /* all channels */
 
+#define BLE_HCI_PERIODIC_ADV_ITVL           (1250)          /* usecs */
+
 /* Set scan parameters */
 #define BLE_HCI_SCAN_TYPE_PASSIVE           (0)
 #define BLE_HCI_SCAN_TYPE_ACTIVE            (1)