I wonder if someone can help. I recently got a new emonTH v2. I was trying to get it to work with my current setup (setup back in 2019), this uses the legacy radio 433mhz non secure. I just seem to be getting errors when trying to upload a new sketch the the emonTH.
Could someone advise what the correct libraries I should have in Arduino IDE before uploading the sketch. I am relatively new to using the IDE any help or pointer would be appreciated.
I have searched but have been unable to find any similar problems on the forum.
Apart from the “standard” libraries you get automatically when you install the IDE, you need the ones listed here Using the Arduino IDE — OpenEnergyMonitor 0.0.1 documentation, then if you’re still missing a library, look in your sketch files for the #include <...> statements near the top - these list the non-standard libraries the sketch needs. (Do a search - they aren’t all lumped together.)
You have got both source files in the IDE, emonth2.ino and emonth2_config.ino?
Don’t worry if you have libraries that aren’t mentioned, the compiler only uses the ones it needs.
If you’re still stuck, post the first half-dozen or so error messages (ignore the warnings - there are many) and always tackle the first error first - because one error often starts a cascade of errors.