File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ void setBeacon() {
65
65
66
66
pAdvertising->setAdvertisementData (oAdvertisementData);
67
67
pAdvertising->setScanResponseData (oScanResponseData);
68
+ pAdvertising->setAdvertisementType (ADV_TYPE_NONCONN_IND);
68
69
69
70
}
70
71
Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ void BLEAdvertising::setAppearance(uint16_t appearance) {
85
85
m_advData.appearance = appearance;
86
86
} // setAppearance
87
87
88
+ void BLEAdvertising::setAdvertisementType (esp_ble_adv_type_t adv_type){
89
+ m_advParams.adv_type = adv_type;
90
+ } // setAdvertisementType
91
+
88
92
void BLEAdvertising::setMinInterval (uint16_t mininterval) {
89
93
m_advParams.adv_int_min = mininterval;
90
94
} // setMinInterval
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ class BLEAdvertising {
52
52
void start ();
53
53
void stop ();
54
54
void setAppearance (uint16_t appearance);
55
+ void setAdvertisementType (esp_ble_adv_type_t adv_type);
55
56
void setMaxInterval (uint16_t maxinterval);
56
57
void setMinInterval (uint16_t mininterval);
57
58
void setAdvertisementData (BLEAdvertisementData& advertisementData);
@@ -76,4 +77,4 @@ class BLEAdvertising {
76
77
77
78
};
78
79
#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