-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
bluetooth: fast_pair: fmdn: add API for checking the provisioning state #20970
bluetooth: fast_pair: fmdn: add API for checking the provisioning state #20970
Conversation
39bfd02
to
f9988f5
Compare
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 033d40c7732f2d9d775aac3f32c5ca3589c55bcd more detailssdk-nrf:
find-my:
Github labels
List of changed files detected by CI (8)
File list hidden for private repositories. Outputs:ToolchainVersion: Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR here. |
@@ -538,17 +538,18 @@ struct bt_fast_pair_fmdn_info_cb { | |||
/** @brief Indicate provisioning state changes. |
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.
commit msg had 2 typos:
Added the new FMDN API - bt_fast_pair_fmdn_is_provisioned. The API can
be used to check the device provisioning in the synchronous manner.
Changed the bt_fast_pair_fmdn_info_cb.provisioning_state_changed
callback behaviour. The callback no longer reports the initial
provisioning state after the Fast Pair subsystem is enabled with
the bt_fast_pair_enable API.
Aligned the affected Fast Pair projects that use the FMDN extension.
fmdn_provisioning_state_set(false); | ||
fp_account_key_present = false; |
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.
I know that false is expected here for both functions (as factory reset removes both), but I wonder if it wouldn't be better to synch it to:
bt_fast_pair_has_account_key()
and bt_fast_pair_fmdn_is_provisioned()
like in other places.
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.
Perhaps we should add asserts for the expected value as well. I will align it
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.
You can add assert inside fmdn_provisioning_state_set
function.
fmdn_provisioning_state_set(false); | ||
fp_account_key_present = false; |
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.
You can add assert inside fmdn_provisioning_state_set
function.
f9988f5
to
16c67ec
Compare
I did the last force-push to address comments. |
16c67ec
to
0389e04
Compare
Pure rebase. No file diff has changed |
0389e04
to
768061c
Compare
Force-push to plug the Find My alignment into this top-level PR |
The following west manifest projects have changed revision in this Pull Request: ✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
768061c
to
b2e283c
Compare
b2e283c
to
93bb89d
Compare
small logging adjustment, as the build run failed anyway due to docker failures |
Added the new FMDN API - bt_fast_pair_fmdn_is_provisioned. The API can be used to check the device provisioning state synchronously. Changed the bt_fast_pair_fmdn_info_cb.provisioning_state_changed callback behavior. The callback no longer reports the initial provisioning state after the Fast Pair subsystem is enabled with the bt_fast_pair_enable API. Aligned the affected Fast Pair projects that use the FMDN extension. Ref: NCSDK-30856 Signed-off-by: Kamil Piszczek <Kamil.Piszczek@nordicsemi.no>
93bb89d
to
033d40c
Compare
manifest bump |
|
Added the new FMDN API - bt_fast_pair_fmdn_is_provisioneda. The API can be used to check the device provisioning in the synchronous manner.
Changed the bt_fast_pair_fmdn_info_cb.provisioning_state_changed callback behaviour. The callback no longer reports the initil provisioning state after the Fast Pair subsystem is enabled with the bt_fast_pair_enable API.
Aligned the affected Fast Pair projects that use the FMDN extension.
Ref: NCSDK-30856