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

Give BLE scan more options. #2643

Merged
merged 17 commits into from
Nov 25, 2024
Merged

Conversation

floitsch
Copy link
Member

Most users shouldn't touch them, but for power users it's nice to have them available.

Split out the fields and make them accessible.
This makes it possible to move more code into Toit, and also gives more
control to users that need more advanced advertisement fields.
Active scans send a request to the device when they have received an
advertisement.
Most users shouldn't touch them, but for power users it's nice to have
them available.
We don't want to accidentally run board1 and board2 of unrelated tests.
Copy link
Member

@kasperl kasperl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@@ -2443,10 +2443,10 @@ PRIMITIVE(scan_start) {
disc_params.passive = passive ? 1 : 0;

/* Use defaults for the rest of the parameters. */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@@ -62,12 +62,17 @@ main-peripheral:
next-semaphore.down
peripheral.stop-advertise

is-general-advertisement := false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Base automatically changed from floitsch/ble-extended-scan.20.active-scan to master November 25, 2024 13:58
@floitsch floitsch merged commit 389c870 into master Nov 25, 2024
2 of 4 checks passed
@floitsch floitsch deleted the floitsch/ble-extended-scan.30.more-options branch November 25, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants