Emon Library issues with using it

Hi guys, am currently trying to use the EmonLib library on particle IDE together with the Electron. However, even after adding the library to my code, the error message “EmonLib.h: No such file or directory” comes out. I tried to use the example provided by the library itself and the same issue occurs! I have found the arduino version: https://github.com/openenergymonitor/EmonLib but I’m not very sure how to integrate it in.

Would appreciate if anyone knows how to resolve this! Thanks!

Make sure you use a recent version of system firmware. Could you share the link for the project so we can have a look?

https://build.particle.io/libs/EmonLib/1.1.2/tab/EmonLib.cpp
This is for the particle IDE library
https://learn.openenergymonitor.org/electricity-monitoring/ct-sensors/how-to-build-an-arduino-energy-monitor-measuring-current-only?redirected=true
This is the project im refering to which is also on the particle IDE as an example in the EmonLib!
Hope this helps!

I guess @Moors7 rather meant this
https://docs.particle.io/guide/getting-started/build/photon/#sharing-your-app

And you didn't reveal what system version you are targeting with your project

https://docs.particle.io/guide/getting-started/build/photon/#flashing-your-first-app

1 Like

https://go.particle.io/shared_apps/5aaf7451db39cf618000045b here!

my system firmware is on 0.4.8, will that be a problem? And if so, do I just change by clicking on the tab?

Thank you!

Most likely.

Yup.

1 Like

Thank you so much the problem has been resolved :slight_smile: thanks for your help!

1 Like