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.

#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:

    And the initialization like this:

    Would not the power pins be the opposite of intended?