Skip to content

Conversation

@gen2thomas
Copy link

@gen2thomas gen2thomas commented Jan 2, 2026

"C.sd_ble_gap_scan_stop()" must not followed by "C.sd_ble_gap_scan_start(nil, &scanReportBufferInfo)", otherwise the latter returns the error "invalid state, operation disallowed in this state"

This fixes #403 .

Additionally:
Postponing the termination of the for loop until after the callback speeds up the loop and should be possible without risk.

@gen2thomas gen2thomas marked this pull request as ready for review January 2, 2026 15:24
@zopieux
Copy link
Contributor

zopieux commented Jan 7, 2026

I suppose this makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants