Skip to content

Question about non-blocking NimBLEScan::start() and continuous scan #369

Answered by mbariola
mbariola asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @h2zero , here's the results of the new sketch including the setScanDuplicateCacheSize(10) and the setMaxResults(0) statements

  • If I comment out the clearResults() in the callback, I only get one single reading and nothing else.
  • If I leave it commented, and set the duplicate cache size to 10, or 0, I still only get one single reading
  • If I uncomment it, I get the once-per-second reading.
    So apparently either I am making some mistake / don't understand something, or I need to clear or remove the specific scan from the results set. The idea of a possible exception is quite scary though! Maybe you can run this sketch with one device, and see if you have different results than mine

A heads…

Replies: 5 comments 27 replies

Comment options

You must be logged in to vote
2 replies
@mbariola
Comment options

@mbariola
Comment options

Comment options

You must be logged in to vote
1 reply
@mbariola
Comment options

Comment options

You must be logged in to vote
2 replies
@h2zero
Comment options

@mbariola
Comment options

Answer selected by mbariola
Comment options

You must be logged in to vote
7 replies
@Zimbu98
Comment options

@Zimbu98
Comment options

@h2zero
Comment options

@Zimbu98
Comment options

@h2zero
Comment options

Comment options

You must be logged in to vote
15 replies
@Zimbu98
Comment options

@Zimbu98
Comment options

@h2zero
Comment options

@Zimbu98
Comment options

@h2zero
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants