GithubHelp home page GithubHelp logo

Comments (6)

Boscloner avatar Boscloner commented on August 28, 2024

This seems to function as intended, but please match the style of the iOS version.

The iOS version uses a dark grey background color and uses the phrase:
"Attempting Connection to Boscloner"

from legacy-boscloner-android-app.

Boscloner avatar Boscloner commented on August 28, 2024

A few things on this:

  • It seems to take nearly 5 seconds or so before it recognizes that the Boscloner has been disconnected. This needs to happen within one second (or as instant as possible)

  • When in a disconnected state and in the History screen, the user should not be able to send any WRITE commands to the board (since it is disconnected). When the user presses on a badge ID from the history file, they should be given a popup that tells them the Boscloner is in a disconnected state...instead of allowing them to proceed as normal.

You can find that code in my iOS version that simply shows a dialog box that tells them the Boscloner is disconnected and does not allow them to proceed with any write commands. Please copy the iOS version functionality.

from legacy-boscloner-android-app.

aleksamarkoni avatar aleksamarkoni commented on August 28, 2024

Ok will change this, but I am not sure if I am able to influence the disconnected thing. Android has timeouts that are still in place and only if you timeout you will be disconnected. I am not sure how is that working on the iOS, but I will check. When it comes to the writing, I was prociding as normal and just disregarding the write to the boscloner board since that was easiest to implement. I will need to change a logic a bit to support this, but will do it.

from legacy-boscloner-android-app.

aleksamarkoni avatar aleksamarkoni commented on August 28, 2024

This should work now, so when you try to write from the history page, you will get a dialog that says boscloner disconnected. The messages are the same as in iOS app.

from legacy-boscloner-android-app.

Boscloner avatar Boscloner commented on August 28, 2024

We can set this issue aside as a low-priority, cause it works well...but it still takes 5 seconds before it recognizes that the Bluetooth board has been disconnected. I'd like to get that down to no more than 1 second. On the iOS, I have a timer running every second to check the Bluetooth connected state.

Essentially,

  • every 1 second run this timer()
  • the timer executes a function ( func isAliveCheck )

if isAliveCheck sees that the bluetooth status is connected, it returns and no action is taken.
if is AliveCheck sees that the bluetooth status is disconnected, it immediately starts the bluetooth pairing process again from the beginning.

from legacy-boscloner-android-app.

aleksamarkoni avatar aleksamarkoni commented on August 28, 2024

Hi @philimanjaro, as I told you Android has the timers on its own, so even you have the timer to check if the device is disconnected, that might not give you the proper answer like in the ios.

from legacy-boscloner-android-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.