File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ void setBeacon() {
6565
6666 pAdvertising->setAdvertisementData (oAdvertisementData);
6767 pAdvertising->setScanResponseData (oScanResponseData);
68+ pAdvertising->setAdvertisementType (ADV_TYPE_NONCONN_IND);
6869
6970}
7071
Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ void BLEAdvertising::setAppearance(uint16_t appearance) {
8585m_advData.appearance = appearance;
8686} // setAppearance
8787
88+ void BLEAdvertising::setAdvertisementType (esp_ble_adv_type_t adv_type){
89+ m_advParams.adv_type = adv_type;
90+ } // setAdvertisementType
91+
8892void BLEAdvertising::setMinInterval (uint16_t mininterval) {
8993m_advParams.adv_int_min = mininterval;
9094} // setMinInterval
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ class BLEAdvertising {
5252void start ();
5353void stop ();
5454void setAppearance (uint16_t appearance);
55+ void setAdvertisementType (esp_ble_adv_type_t adv_type);
5556void setMaxInterval (uint16_t maxinterval);
5657void setMinInterval (uint16_t mininterval);
5758void setAdvertisementData (BLEAdvertisementData& advertisementData);
@@ -76,4 +77,4 @@ class BLEAdvertising {
7677
7778};
7879#endif /* CONFIG_BT_ENABLED */
79- #endif /* COMPONENTS_CPP_UTILS_BLEADVERTISING_H_ */
80+ #endif /* COMPONENTS_CPP_UTILS_BLEADVERTISING_H_ */
You can’t perform that action at this time.
0 commit comments