-
Notifications
You must be signed in to change notification settings - Fork 935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Extended the Scan API #2282
Conversation
Tested it, works! |
cyw43/src/control.rs
Outdated
@@ -1,5 +1,6 @@ | |||
use core::cmp::{max, min}; | |||
use core::iter::zip; | |||
use core::time::Duration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use embassy_time::Duration
instead.
(core::time::Duration
is a bit bloated for embedded usage: it has u64 seconds + u32 nanoseconds, and requires expensive multiply/divide by 10^9 when doing math with it)
cyw43/src/control.rs
Outdated
}, | ||
Passive { | ||
/// Period of time to wait on each channel when passive scanning. | ||
dwell_time: Option<Duration>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe dwell_time
could be a field in ScanOptions
instead, since the two scan types have it equally?
c780b58
to
6ca4303
Compare
I've backed out the BssInfo changes because they ended up conflicting with #2461 , i'm merging the rest. |
I have extended the scan APIs. I followed the mentioned reference implementation.
It is not tested though and it would be very kind if someone could before merging, my debug probe hasn't arrived yet.