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

Cannot connect to BS444 - Timeout #115

Open
espspinix opened this issue Feb 20, 2024 · 1 comment
Open

Cannot connect to BS444 - Timeout #115

espspinix opened this issue Feb 20, 2024 · 1 comment

Comments

@espspinix
Copy link

Hello,

I have a BS444 and in contrary to what others have reported, I can only connect to it with a BLEAddressType.random.
I had connection timeouts (all configured properly and got really close to it) until I switched from public to random in the code.

Maybe it would be better to try to switch address type to random after the first timeout is unsuccessul and after a successful connect save the type of address type in the config for the future?

@DjZU
Copy link
Contributor

DjZU commented Feb 20, 2024

Hi,

I also have a BS444 and always used BLEAddressType.random.
Until the commit 88d5740 it was working for me and since then I modified this in the code as well.

I also use time_offset = 0

I did connect the scale to the Android app before, did you? Either this has a consequence or there are different types of BS444 around?

Maybe the BLEAddressType should be an optional parameter in the BS440.ini to override the default logic? Same for time_offset.

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

No branches or pull requests

2 participants