All content on EnviroDIY is licensed as Creative Commons Attribution-ShareAlike 4.0. Hardware designs on EnviroDIY are released under the CERN Open Hardware License 1.2. Alternative licenses are available. Learn more
All content on EnviroDIY is licensed as Creative Commons Attribution-ShareAlike 4.0. Hardware designs on EnviroDIY are released under the CERN Open Hardware License 1.2. Alternative licenses are available. Learn more
Community Activity See all activity
neilh20 replied to the topic Adding a new modbus sensor using current ones as inspiration. in the forum Environmental Sensors 2 years, 4 months ago
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 co…[Read more]
Erik G replied to the topic Adding a new modbus sensor using current ones as inspiration. in the forum Environmental Sensors 2 years, 4 months ago
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:
[Read more]
neilh20 replied to the topic Adding a new modbus sensor using current ones as inspiration. in the forum Environmental Sensors 2 years, 4 months ago
Hello Erik, I’m sorry I still don’t understand your question.
Erik G replied to the topic Adding a new modbus sensor using current ones as inspiration. in the forum Environmental Sensors 2 years, 4 months ago
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 to clarify that.
The second one is from the Modular sensor library.
Dave Spector became a registered member 2 years, 4 months ago
Dave Spector
@dhmspector
neilh20 replied to the topic Adding a new modbus sensor using current ones as inspiration. in the forum Environmental Sensors 2 years, 4 months ago
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 be list what gas sensor you are looking at for the max help.
So I don’t follow your question – where do you get the code snippet from the first se…[Read more]
Erik G started the topic Adding a new modbus sensor using current ones as inspiration. in the forum Environmental Sensors 2 years, 4 months ago
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 Yosemitech and Keller librarys as a template and tried to make it as basic as possible.
When checking the example code for the modbus sensors i get…[Read more]
A4A became a registered member 2 years, 4 months ago
A4A
@a4a
Dave became a registered member 2 years, 4 months ago
Dave
@davem
Shannon Hicks replied to the topic Regular Data Outages in the forum Mayfly Data Logger 2 years, 4 months ago
Thanks for the followup. Plugging an EnviroDIY sim7080 LTE bee board into one of the old Digi bee adapter boards will definitely cause problems, since there are different pinouts for the 2 cell modules, as well as different supply voltages provided to the pins, which could damage the sim7080 bee. Also note that upgrading a Mayfly board from a D…[Read more]