@@ -544,6 +544,12 @@ class Gap {
544
544
*/
545
545
virtual uint16_t getMaxConnectableAdvertisingDataLength ();
546
546
547
+ /* * Return maximum advertising data length you may set if advertising set is active.
548
+ *
549
+ * @return Maximum advertising data length you may set if advertising set is active.
550
+ */
551
+ virtual uint8_t getMaxActiveSetAdvertisingDataLength ();
552
+
547
553
/* * Create an advertising set and apply the passed in parameters. The handle returned
548
554
* by this function must be used for all other calls that accept an advertising handle.
549
555
* When done with advertising, remove from the system using destroyAdvertisingSet().
@@ -589,6 +595,10 @@ class Gap {
589
595
* @param handle Advertising set handle.
590
596
* @param payload Advertising payload.
591
597
*
598
+ * @note If advertising set is active you may only set payload of length equal or less
599
+ * than getMaxActiveSetAdvertisingDataLength(). If you require a longer payload you must
600
+ * stop the advertising set, set the payload and restart the set.
601
+ *
592
602
* @return BLE_ERROR_NONE on success.
593
603
*
594
604
* @see ble::AdvertisingDataBuilder to build a payload.
@@ -604,6 +614,10 @@ class Gap {
604
614
* @param handle Advertising set handle.
605
615
* @param response Advertising scan response.
606
616
*
617
+ * @note If advertising set is active you may only set payload of length equal or less
618
+ * than getMaxActiveSetAdvertisingDataLength(). If you require a longer payload you must
619
+ * stop the advertising set, set the payload and restart the set.
620
+ *
607
621
* @return BLE_ERROR_NONE on success.
608
622
*
609
623
* @see ble::AdvertisingDataBuilder to build a payload.
@@ -669,6 +683,11 @@ class Gap {
669
683
* @param payload Advertising payload.
670
684
* @return BLE_ERROR_NONE on success.
671
685
*
686
+ * @note If advertising set is active you may only set payload of length equal or less
687
+ * than getMaxActiveSetAdvertisingDataLength(). If you require a longer payload you must
688
+ * stop the advertising set, set the payload and restart the set. Stopping the set will
689
+ * cause peers to lose sync on the periodic set.
690
+ *
672
691
* @see ble::AdvertisingDataBuilder to build a payload.
673
692
*
674
693
* @version 5+
0 commit comments