mathieucarbou / MycilaPZEM004Tv3

Arduino / ESP32 library for the PZEM-004T v3 Power and Energy monitor
https://oss.carbou.me/MycilaPZEM004Tv3/
MIT License
0 stars 0 forks source link

Include Mutex error #2

Closed intd-in closed 4 weeks ago

intd-in commented 6 months ago

Got following error Documents\Arduino\libraries\MycilaPZEM004Tv3\src/MycilaPZEM004Tv3.h:9:10: fatal error: mutex: No such file or directory #include

Mutexes are typically used for multithreading or multitasking environments, which are not natively supported in most Arduino boards due to their limited resources. How to use your library with arduinoUno

mathieucarbou commented 6 months ago

This library is meant to be used on multi-core boards such as ESP32. Hence the use of mutexes and async tasks.

If you need Arduino Uno support, feel free to propose a PR. I will be glad to review.