Apolline-Lille / apolline-alpha

Alternative version of the Android app
0 stars 1 forks source link

BLE service freezes when connection to InfluxDB fails #1

Open MrXedac opened 4 years ago

MrXedac commented 4 years ago

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 commented 4 years ago

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