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

Keep connection between activities? #37

Closed
kvnramirez opened this issue May 30, 2019 · 1 comment
Closed

Keep connection between activities? #37

kvnramirez opened this issue May 30, 2019 · 1 comment

Comments

@kvnramirez
Copy link

Hi, I've been trying your library and works great, but I was wondering if it's possible to pass the connection between activites avoiding to reconnect everytime I change from activity? And if it's possible, how?

@omaraflak
Copy link
Owner

Hi @kvnramirez, I'm not sure because my Arduino has a problem right now so I can't test.
But if you don't call arduino.close() the connection should be maintained. That said, I don't think this is the right way to do it. If you want to keep the connection across multiple activities you should probably use the library in a Service.

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