GithubHelp home page GithubHelp logo

Comments (3)

Rowbotronics avatar Rowbotronics commented on September 25, 2024

Here's how I plan to implement this:

  • Clients will have a timeout set ( 1 minute?)
  • If no valid packets are received from the server in that time, LEDs and LCD will be changed to indicate disconnect. Heartbeats only need to be sent if no other data is sent within the timeout period.
  • Once a valid packet is received the client will send a start packet
  • At that point the server should update the clients LCD and LEDs

Sound good?

from electronic-door.

domstoppable avatar domstoppable commented on September 25, 2024

Makes sense to me!

Does the server need to send both an LCD and LED message though? If it just sends the LCD message, the client will no longer be in a longer-than-60s state, so it can resume it's default LED behavior.

from electronic-door.

Rowbotronics avatar Rowbotronics commented on September 25, 2024

This has been implemented with the following change: Clients resume default LED sequence upon receiving any new message from the server. They don't have a default LCD message, so that still needs to be reset. Or we could make some kind of default.

from electronic-door.

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.