adafruit / Bluefruit_LE_Connect_Android

Android port of Adafruit's Bluefruit LE Connect app
MIT License
122 stars 100 forks source link

App hangs on "Checking Updates ..." if connection isn't reliable #16

Closed microbuilder closed 9 years ago

microbuilder commented 9 years ago

If we are using GSM or the Internet connection isn't reliable, we often hang on "Checking Updates..." ... we should probably have a timeout here as a minimum, and after 2 or 3s with nothing just skip the update and connect.

antonio-openroad commented 9 years ago

That message will only appears when the app is trying to check if the peripheral has the dfu and dis services and trying to read the firmware and software revision characteristics (no internet connection is made at this point). Sometimes it could get stuck waiting for these characteristics to be read but there is nothing that we could do. If we skip this step, the bluetooth connection will get again stuck as soon as we try to read anything else. It seems related to a Bluetooth stack problem.

Maybe I should change the message to something like "Waiting for device info..." to make clear that the bluetooth stack is not responding?

microbuilder commented 9 years ago

That might make sense: "Waiting for Device Information Service data ..."