Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Adding a new modbus sensor using current ones as inspiration.

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

#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  “// .. sensor” , and that  is a comment

It does look like it may have been swopped, but its only descriptive text.  Getting descriptions to match the code takes time and refinement.  The “code warrior” answer;  is read the code 🙂 .

FYI IMHO  adding a new protocol for a Modbus  device is jumping into some “deep water”. Good luck!