vortigont / pzem-edl

An event-driven library for ESP32 implementing PZEM-004T v3.0 / PZEM-003 / PZEM-017 Modbus-RTU proto
GNU General Public License v3.0
21 stars 4 forks source link

loop() not working / Execute own program Code Example. #10

Closed Petros144 closed 6 months ago

Petros144 commented 9 months ago

Hi @vortigont,

It´s Me again. I had success with the Signale Values, now I tried to add some stuff to loop() and it is not working.

this kind of Programing is new to me, can you give a newbie a example on how to execute my "own" code? with your Library?

Sorry for these kind of questions, but i would love to use ur Library for my projekt.

Thanks in advance.

vortigont commented 9 months ago

Hi @Petros144,

loop() is not related to the lib code at all, it work asynchronously. So you are free to put anything there. Just make sure to remove vTaskDelete(NULL); if it was left from the example code. Otherwise it will kill loop execution at first run.