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.
2022-06-01 at 12:24 PM
#17064
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
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!