Skip to content

Commit

Permalink
Scan method changed
Browse files Browse the repository at this point in the history
  • Loading branch information
redakker committed Nov 23, 2023
1 parent c8e62f8 commit f9d120f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions src/utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ void bluetoothScanner(void *parameters) {
BLEScan *pBLEScan = static_cast<BLEScan*>(parameters);

for( ;; ) {

pBLEScan -> clearResults(); // delete results fromBLEScan buffer to release memory
vTaskDelay(20 / portTICK_PERIOD_MS );

pBLEScan -> start(BT_DEFAULT_SCAN_DURATION_IN_SECONDS, false);

// Tell the task how long to delay for:
vTaskDelay(2000 / portTICK_PERIOD_MS );

pBLEScan -> clearResults(); // delete results fromBLEScan buffer to release memory
vTaskDelay(20 / portTICK_PERIOD_MS );


}
}
4 changes: 2 additions & 2 deletions src/webcontent.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ BLEcker
<a class="button w100" href="/">home</a>
<a class="button w100" href="/update">update</a>
<!--<a class="button w100 button-danger" id="reset" href="#">reset</a>-->
<div class="version" id="version">v1.11 - 177</div>
<div class="version" id="version">v1.11 - 178</div>
<div class="version" id="chip"></div>
<div id="footer">
<div><a href="https://github.com/redakker/blecker" target="_blank">blecker</a></div>
Expand Down Expand Up @@ -1564,7 +1564,7 @@ BLEcker
<a class="button w100" href="/">home</a>
<a class="button w100" href="/update">update</a>
<!--<a class="button w100 button-danger" id="reset" href="#">reset</a>-->
<div class="version" id="version">v1.11 - 177</div>
<div class="version" id="version">v1.11 - 178</div>
<div id="footer">
<div><a href="https://github.com/redakker/blecker" target="_blank">blecker</a></div>
</div>
Expand Down

0 comments on commit f9d120f

Please sign in to comment.