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.
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!