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

Change filter to regexp, add Espruino to Bangle.js device #458

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jmlich
Copy link
Contributor

@jmlich jmlich commented Jan 18, 2025

Bangle.js is supported also by other devices. Gadget bridge is using following regexp:
https://github.com/Freeyourgadget/Gadgetbridge/blob/a0948ee1cbc2a870f91d313f8e37df5f524465f7/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java#L75

I have reworked PairSelectDevice type in order to define regexp rather than aliases. The DeviceFactory is using startsWith anyway.

I was also wondering if we should rework connect page to match Device class other way around. The Gadgetbridge shows all hardware in bluetooth scan and allows pairing only when match with some pattern. Otherwise it can be useful allowing to pair with certain type even when regular expression doesn't match. Huami devices have big overlap, so It may work partially even without changes in code.

CI is failing due to #468

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.

1 participant