Closed todosko closed 7 months ago
Look at the header and how it runs in CI. If you want Json support, you need:
-D MYCILA_PZEM_JSON_SUPPORT
This is your "Read.ino" example and it doesn't compile. ArduinoJson lib - is installed and its examples are compiled good.
This is your "Read.ino" example and it doesn't compile. ArduinoJson lib - is installed and its examples are compiled good.
It compiles. You just don't know how to compile it ;-)
FYI, this project has some CI setup which verifies at each commit that all samples are compiling.
Like I said, you need to make sure you have the library in place and add the correct macro.
Json support is optional.
K:\Arduino_IDE_1.8.19\portable\sketchbook\libraries\MycilaPZEM004Tv3\examples\Read\Read.ino: In function 'void loop()': Read:18:10: error: 'class Mycila::PZEM' has no member named 'toJson' pzem.toJson(doc.to());
^
~exit status 1 'class Mycila::PZEM' has no member named 'toJson'