Node-Red -MQTT Message Buffer

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 7

  • @a14266
    @a14266 2 месяца назад

    thank you for sharing the knowledge. it helps a lot

  • @user-ul2mx9cv8s
    @user-ul2mx9cv8s 10 месяцев назад

    Hello Steve,
    I am currently working towards the same goal outlined in your video, specifically, buffering data during periods of unstable network connectivity. I am curious to know if there is a method to automatically send the stored data once the broker is back "online" or "connected", without the need for manual intervention such as clicking on the inject node.
    Thank you very much for your help on this matter.

  • @jlnolmo
    @jlnolmo Год назад

    You are sending 20º and 80% of humidity, the last values you have. Let's say the connection is lost at 11:58. What if you need to send 20º and 80% at 12:00, 19.9º and 80% at 12:01, 19.8º and 79.9 at 12:02 and so on? I mean, when the connection is restored, for example at 12:05, you will have those values but with no reference to when they occurred, haven´t you? Thanks in advance.

    • @stevecope
      @stevecope  Год назад +1

      If you need those values then you will need to buffer them.
      However if you are using the value to trigger an event like turning on a fan if the temperature is above 20C the sending old values doesn't make sense and will just delay the fan turning on as old data is sent first.
      Does that make sense?
      rgds
      steve

    • @jlnolmo
      @jlnolmo Год назад

      @@stevecope yes. It makes sense. In my case, is not turning off or on but drawing an historical trend.

    • @stevecope
      @stevecope  Год назад

      @@jlnolmo Then you will need to buffer the data.
      Rgds
      Steve

  • @haitruongquocchi203
    @haitruongquocchi203 Год назад

    good