Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Sin_TreClay
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Sin_TreClay

    @Sin_TreClay

    0
    Reputation
    3
    Posts
    184
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Somewhere below water

    Sin_TreClay Follow

    Best posts made by Sin_TreClay

    This user hasn't posted anything yet.

    Latest posts made by Sin_TreClay

    • RE: Retain messages MQTT?

      @mfalkvidd

      Well I the dashboard speaks to my server application. And the server application makes a request to the MQTT broker.
      Both server application and dashboard are on my pc.

      So it probably should be better to have the server application continually asking the data from the broker, and storing it there and then using that data?

      atm I had no plans for storing the data, so I was thinking to keep the latest values saved at the broker and ask them when needed.

      @gohan
      I see, I'm going to take a look into that, how a controller works.

      posted in General Discussion
      Sin_TreClay
      Sin_TreClay
    • RE: Retain messages MQTT?

      Thanks @mfalkvidd for the welcome ☺.

      It did indeed the job, I somehow created a problem by making it again. (forgot to setup mqtt or something)...
      But it's working now as I thought I wanted it.

      At the moment I am trying to build a system that gets the last message from the sensor into the dashboard. So when the dashboard wants to refresh itself, he asks the latest sensor value from the MQTT broker. He gets the data and displays it then.

      That was in my mind the most simplest solution for the first start.

      So that the sensors can save their batteries and only the broker and gateway are hanging on power. When I need the data I request it. No need atm to save the data and query it from that.

      Now my further thoughts were to use the retain function and a always active subscriber to log all the data getting into it to create statistics.

      But I felt a bit that this is probably not the usual way, and I think atm that maybe I have misunderstood something about the concept🙄. My first idea was also only to have the sensor values retained. But probably for that I need to change more😅(when that's the only way).
      I also get the fact that when creating a bigger sensor network that storing all the data at the MQTT broker could become a problem 🤔 . So now with two sensors running there is no problem, there's only a temp or hum value in it. No more so that's also not really I problem I think. But maybe if the MQTT broker has small storage it could be not smart.

      posted in General Discussion
      Sin_TreClay
      Sin_TreClay
    • Retain messages MQTT?

      Hi all,

      I have been trying to setup a small MySensors network for a project of mine, where I want to have the MQTT messages kept retained at the MQTT broker(using mosquitto). I know that the broker is capable for that.

      ATM my setup is:
      some Arduino mini pro's (3.3V) with a nRF23L01+ for sending with a temperature sensor.
      those send their temperature data to a raspberry pi with the network gateway, which sends it to my MQTT broker.

      So my question is, is it possible within MySensors to set the retain flag at the sensor or gateway site so that the broker will retain the message? So that when I need the data I ask from the relevant topic I only get the last value.

      Thanks already in advanced 🙂

      posted in General Discussion
      Sin_TreClay
      Sin_TreClay