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

BLE service freezes when connection to InfluxDB fails #1

Open
MrXedac opened this issue May 6, 2020 · 1 comment
Open

BLE service freezes when connection to InfluxDB fails #1

MrXedac opened this issue May 6, 2020 · 1 comment
Assignees
Labels
bug Something isn't working critical

Comments

@MrXedac
Copy link
Collaborator

MrXedac commented May 6, 2020

When synchronization to InfluxDB is enabled and the server is unavailable for whatever reason, the BLE service seems to freeze (no timeout in connection ?). The phone has to be restarted for the service to finally close.

Putting InfluxDB sync in a dedicated thread might be a workaround, but a timeout definitly needs to be put in the connection to Influx. Still, I have to use an old version of the InfluxDB Java bindings, which does not support timeouts.
For the time being, ensure your InfluxDB server is available when you enable synchronization.

@MrXedac MrXedac added bug Something isn't working critical labels May 6, 2020
@MrXedac MrXedac self-assigned this May 6, 2020
@MrXedac
Copy link
Collaborator Author

MrXedac commented May 11, 2020

Right now autoconnect should be disabled, and sync should be done on demand through the button on the main menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working critical
Projects
None yet
Development

No branches or pull requests

1 participant