GithubHelp home page GithubHelp logo

Comments (5)

jlkalberer avatar jlkalberer commented on July 18, 2024

@sohil4932 - can you try flashing your electron with a v0.6.3 system firmware and see how that goes?

I am guessing that the electron is going into "low power mode" which has a newer way to reconnect to the server. This would be the same with the Argon and Boron.

from spark-server.

Sarveshwar20 avatar Sarveshwar20 commented on July 18, 2024

The reason it reconnects after every 30 seconds is because in 'settings.js' timeout value is set to 30 seconds. So before data is received the timer value resets and connection is re-established. Increase the value and rebuild CLI and try again. You can also edit this in your own firmware. It should work.

from spark-server.

jlkalberer avatar jlkalberer commented on July 18, 2024

Ahh.. that makes sense. Do you know what the standard timeout for electron is on the hardware-side?

It might make sense to allow the setting to be configurable per device type.

from spark-server.

Sarveshwar20 avatar Sarveshwar20 commented on July 18, 2024

@jlkalberer The timeout duration varies by mobile network operator. The default timeout is set to 23 minutes. However, when using third party SIM cards, timeout value needs to be set manually depending on the carrier.

from spark-server.

jlkalberer avatar jlkalberer commented on July 18, 2024

Got it. I see they have a keepalive function here - https://docs.particle.io/reference/device-os/firmware/electron/
I would hope that it would ping the server with that value so we can store it and use it as the keepalive.

If it's not doing that, it would make sense to just check if the device is an electron and use 23 minutes instead of 30 seconds.

from spark-server.

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.