Skip to content

aioble/security: Add option to limit number of peers stored. #463

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewleech
Copy link
Contributor

This can be used to handle hardware that has a limit to the number of pairing / IRK keys that can be stored in the radio.

Needs to be enabled before aioble initialised to have any impact, eg.

import aioble.security
aioble.security.limit_peers = 3

Basically turns the pairing DB into a FIFO when once the set limit is reached, if any new devices are paired the oldest will be forgotten.

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