Skip to content
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

Merged
merged 2 commits into from
Jan 20, 2024
Merged

Conversation

umgefahren
Copy link
Contributor

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.

@umgefahren
Copy link
Contributor Author

Tested it, works!

@umgefahren umgefahren marked this pull request as ready for review December 15, 2023 12:56
@@ -1,5 +1,6 @@
use core::cmp::{max, min};
use core::iter::zip;
use core::time::Duration;
Copy link
Member

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)

},
Passive {
/// Period of time to wait on each channel when passive scanning.
dwell_time: Option<Duration>,
Copy link
Member

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?

@Dirbaio Dirbaio force-pushed the extend-cyw43-bss-info branch from c780b58 to 6ca4303 Compare January 19, 2024 22:52
@Dirbaio
Copy link
Member

Dirbaio commented Jan 19, 2024

I've backed out the BssInfo changes because they ended up conflicting with #2461 , i'm merging the rest.

@Dirbaio Dirbaio enabled auto-merge January 19, 2024 23:11
@Dirbaio Dirbaio added this pull request to the merge queue Jan 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 19, 2024
@Dirbaio Dirbaio added this pull request to the merge queue Jan 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 20, 2024
@Dirbaio Dirbaio added this pull request to the merge queue Jan 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 20, 2024
@Dirbaio Dirbaio added this pull request to the merge queue Jan 20, 2024
Merged via the queue into embassy-rs:main with commit da3884f Jan 20, 2024
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