RoshanESP commented on code in PR #1537:
URL: https://github.com/apache/mynewt-nimble/pull/1537#discussion_r1339543382
##########
nimble/host/include/host/ble_gap.h:
##########
@@ -1558,10 +1588,15 @@ int ble_gap_periodic_adv_configure(uint8_t instance,
* Start periodic advertising for specified advertising instance.
*
* @param instance Instance ID
+ * @param params Additional arguments specifying the particulars
+ * of periodic advertising.
*
* @return 0 on success, error code on failure.
*/
-int ble_gap_periodic_adv_start(uint8_t instance);
+int
+ble_gap_periodic_adv_start(uint8_t instance,
+ const struct ble_gap_periodic_adv_enable_params
*params);
Review Comment:
fixed.
##########
nimble/host/include/host/ble_gap.h:
##########
@@ -1524,6 +1524,30 @@ struct ble_gap_periodic_adv_params {
uint16_t itvl_max;
};
+/** @brief Periodic advertising enable parameters */
+struct ble_gap_periodic_adv_enable_params {
+#if MYNEWT_VAL(BLE_PERIODIC_ADV_ENH)
+ /** If include adi in aux_sync_ind PDU */
+ unsigned int include_adi:1;
Review Comment:
fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]