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

Add binc_adapter_get_advertisement #64

Merged
merged 1 commit into from
Sep 28, 2024
Merged

Add binc_adapter_get_advertisement #64

merged 1 commit into from
Sep 28, 2024

Conversation

abqjln
Copy link
Contributor

@abqjln abqjln commented Sep 26, 2024

Expose advertisement member in Adapter.

Example from peripheral.c

In 'void on_central_state_changed(Adapter *adapter, Device *device) {...}

OLD `binc_adapter_stop_advertising(adapter, advertisement);'
NEW 'binc_adapter_stop_advertising(adapter, adapter->advertisement);

to eliminate use of global Advertisement *advertisement yet still allow changing advertisement if desired.

@weliem weliem marked this pull request as ready for review September 28, 2024 07:52
@weliem weliem merged commit ff16851 into weliem:main Sep 28, 2024
1 check passed
@abqjln abqjln deleted the binc_adapter_get_advertisement branch October 8, 2024 01:25
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