@@ -57,7 +57,7 @@ class BLEPeripheralRole: public BLERoleBase{
5757 * Set the min and max connection interval BLE Peripheral Device
5858 *
5959 * @param minConnInterval Minimum connection interval (1.25 ms units), minimum 0x0006 (7.5ms)
60- * @param maxConnInterval Maximum connection interval (1.25 ms units), maximum 0x095f (2998.75ms )
60+ * @param maxConnInterval Maximum connection interval (1.25 ms units), maximum 0x0C80 (4000ms )
6161 *
6262 * @note This method must be called before the begin method
6363 */
@@ -139,34 +139,54 @@ class BLEPeripheralRole: public BLERoleBase{
139139 size_t ad_len,
140140 const struct bt_data *sd,
141141 size_t sd_len);
142-
143- /* *
144- * @brief Stop send advertisement
145- *
146- * @param none
147- *
148- * @return none
149- *
150- * @note none
151- */
142+
143+ /* *
144+ * @brief Stop send advertisement
145+ *
146+ * @param none
147+ *
148+ * @return none
149+ *
150+ * @note none
151+ */
152152 BleStatus stopAdvertising ();
153-
153+
154+ /* *
155+ * @brief Set advertising parameter
156+ *
157+ * @param[in] advertisingInterval Advertising Interval (N * 0.625)
158+ *
159+ * @return none
160+ *
161+ * @note none
162+ */
163+ void setAdvertisingInterval (uint16_t advertisingInterval);
164+
154165 /* *
155166 * @brief Set advertising parameter
156167 *
157- * @param type Advertising type
168+ * @param[in] interval_min Minimum Advertising Interval (N * 0.625)
169+ *
170+ * @param[in] interval_max Maximum Advertising Interval (N * 0.625)
158171 *
159- * @param interval_min Minimum Advertising Interval (N * 0.625)
172+ * @return none
173+ *
174+ * @note none
175+ */
176+ void setAdvertisingInterval (uint16_t interval_min,
177+ uint16_t interval_max);
178+
179+ /* *
180+ * @brief Set advertising type
160181 *
161- * @param interval_max Maximum Advertising Interval (N * 0.625)
182+ * @param type Advertising type
183+ * BT_LE_ADV_IND, BT_LE_ADV_NONCONN_IND
162184 *
163185 * @return none
164186 *
165187 * @note none
166188 */
167- void setAdvertisingParam (uint8_t type,
168- uint16_t interval_min,
169- uint16_t interval_max);
189+ void setAdvertisingType (uint8_t type);
170190
171191 /* *
172192 * @brief Get BLE Peripheral instance.
0 commit comments