Coder Social home page Coder Social logo

Comments (2)

rayshobby avatar rayshobby commented on July 30, 2024

Judging from the pattern (3 apart), it's likely due to the delay in sending HTTP commands. The relevant code is here:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/OpenSprinkler.cpp#L1040
special stations (such as HTTP) are refreshed one after another with 1 second apart. In switch_httpstation:
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/OpenSprinkler.cpp#L1573
it waits for your HTTP server to respond. If the response speed is slow, the next time it comes around to refresh, it may be 3 seconds past the previous one, so it skips the 3 special stations in between, which may explain the symptom you see. There are several possible solutions. One is to remove the code in switch_httpstation where it awaits the server to respond, so it merely sends out the command and is not blocked by the response. Another is to set your HTTP stations 3 stations apart: for example, instead of using 17, 18, 19, 20 and so on, you use 17, 20, 23, 26 and so on. Because HTTP stations are virtual stations and do not require expanders to exist, you can enable as many zones as you want.

from opensprinkler-firmware.

bretskee avatar bretskee commented on July 30, 2024

The other thing I could do is to fix my dumb slow (no) responses. Thanks for the tips though. Working now...

from opensprinkler-firmware.

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.