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

timeout on connection, solved #1

Open
Alana-chan opened this issue Jan 1, 2024 · 1 comment
Open

timeout on connection, solved #1

Alana-chan opened this issue Jan 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Alana-chan
Copy link

have Volt Polska branded solar controler, had problems with constant timeouts on connection attempt, solved via changes to your code:

in function main

  print("adapter started")

#modded by alana-chan
while True:
try:
device = adapter.connect(sys.argv[2])
break
except pygatt.exceptions.NotConnectedError:
print('Waiting...')
#end mod

  print("connected")

platform: laptop running ubuntu22 with rtl8761b usb dongle

@majki09 majki09 added the enhancement New feature or request label Jan 2, 2024
@majki09
Copy link
Owner

majki09 commented Jan 2, 2024

Hi @Alana-chan!
Thanks for your issue. Currently this project is at very early stage of it's development, so many things are missing. I'm planning to add more exceptions and updates, but currently I don't have free time to do so.

If you want to keep your credits into the project, good idea would be for you to create a Pull Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants