Skip to content

Check peripheral identity to avoid using a stale instance#156

Merged
philips77 merged 1 commit into
nordicsemi:mainfrom
LevelHome:check-peripheral-identity
May 14, 2026
Merged

Check peripheral identity to avoid using a stale instance#156
philips77 merged 1 commit into
nordicsemi:mainfrom
LevelHome:check-peripheral-identity

Conversation

@natalia-level
Copy link
Copy Markdown
Contributor

@natalia-level natalia-level commented May 6, 2026

Hi, this is proposed fix for #155.

This just checks if the cached CBMPeripheralNative has the same CBPeripheral object and updates the cache if the peripheral has changed.

@itsniper
Copy link
Copy Markdown

Glad to see this making it to a PR, thank you!

I believe it also needs updated in the retrieval functions as well? See: 1ba8c1f

@natalia-level
Copy link
Copy Markdown
Contributor Author

Glad to see this making it to a PR, thank you!

I believe it also needs updated in the retrieval functions as well? See: 1ba8c1f

No, that filter does not exist anymore, all peripherals are updated unconditionally, so no changes should be needed there.

@philips77 philips77 merged commit 23c26c1 into nordicsemi:main May 14, 2026
1 check passed
@philips77
Copy link
Copy Markdown
Contributor

Released in 1.0.5.

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.

3 participants