File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,16 @@ void BLEAdvertising::setAppearance(uint16_t appearance) {
91
91
m_advData.appearance = appearance;
92
92
} // setAppearance
93
93
94
+ void BLEAdvertising::setMinInterval (uint16_t mininterval) {
95
+ m_advData.min_interval = mininterval;
96
+ m_advParams.adv_int_min = mininterval;
97
+ } // setMinInterval
98
+
99
+ void BLEAdvertising::setMaxInterval (uint16_t maxinterval) {
100
+ m_advData.max_interval = maxinterval;
101
+ m_advParams.adv_int_max = maxinterval;
102
+ } // setMaxInterval
103
+
94
104
95
105
/* *
96
106
* @brief Set the filtering for the scan filter.
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ class BLEAdvertising {
52
52
void start ();
53
53
void stop ();
54
54
void setAppearance (uint16_t appearance);
55
+ void setMaxInterval (uint16_t maxinterval);
56
+ void setMinInterval (uint16_t mininterval);
55
57
void setAdvertisementData (BLEAdvertisementData& advertisementData);
56
58
void setScanFilter (bool scanRequertWhitelistOnly, bool connectWhitelistOnly);
57
59
void setScanResponseData (BLEAdvertisementData& advertisementData);
You can’t perform that action at this time.
0 commit comments