Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Adding a new modbus sensor using current ones as inspiration.

Home Forums Environmental Sensors Adding a new modbus sensor using current ones as inspiration.

Viewing 5 reply threads
  • Author
    Posts
    • #17053
      Erik G
      Participant
        I would like to add a gas sensor which communicates over RS485 to work with the modular sensor library but having the normal issues with me lacking the programming skills needed.

        I have used the Yose

      • #17054
        neilh20
        Participant
          Hello Erik, sounds like you are on the path to learning Cpp.  One issue to keep in mind is that the code is what happens, the reality check, the documentation is for readability.  You may want to 
        • #17055
          Erik G
          Participant
            Hi Neil,

            It is very basic but I guess every journey must start somewhere…

            The first code snippet is from the example code in the menu a la carte example. I’ve edited my first post just t

          • #17058
            neilh20
            Participant

              Hello Erik, I’m sorry I still don’t understand your question.

            • #17061
              Erik G
              Participant
                Sorry for being so vague. I will try to clarify.

                Is it not the order of the parameters given in the constructor that matters when creating a new object?

                If the sensor constructor looks like this:

              • #17064
                neilh20
                Participant
                  Hello Erik, hmm perhaps I’m coming from too many years of reading code,

                  Yes the order matters for the code, that the instance follows the the constructor.

                  What you are looking at I think is 

              Viewing 5 reply threads
              • You must be logged in to reply to this topic.