File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,17 @@ void BLEScan::stop() {
228
228
} // stop
229
229
230
230
231
+ /* *
232
+ * @brief Dump the scan results to the log.
233
+ */
234
+ void BLEScanResults::dump () {
235
+ ESP_LOGD (LOG_TAG, " >> Dump scan results:" );
236
+ for (int i=0 ; i<getCount (); i++) {
237
+ ESP_LOGD (LOG_TAG, " - %s" , getDevice (i).toString ().c_str ());
238
+ }
239
+ } // dump
240
+
241
+
231
242
/* *
232
243
* @brief Return the count of devices found in the last scan.
233
244
* @return The number of devices found in the last scan.
@@ -247,4 +258,5 @@ BLEAdvertisedDevice BLEScanResults::getDevice(uint32_t i) {
247
258
return m_vectorAdvertisedDevices.at (i);
248
259
}
249
260
261
+
250
262
#endif /* CONFIG_BT_ENABLED */
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class BLEScan;
31
31
*/
32
32
class BLEScanResults {
33
33
public:
34
+ void dump ();
34
35
int getCount ();
35
36
BLEAdvertisedDevice getDevice (uint32_t i);
36
37
You can’t perform that action at this time.
0 commit comments