olehs / PZEM004T

Arduino communication library for Peacefair PZEM-004T Energy monitor
MIT License
226 stars 114 forks source link

Error compiling #29

Closed ayasystems closed 6 years ago

ayasystems commented 6 years ago

Hi

I have an error when i try to compile your code.

I'm ussing Arduino Ide 1.8.1 ESP Library 2.3.0

Here the error:

C:\Users\Angel\AppData\Local\Temp\arduino_build_805687\sketch\PZEM004T.cpp: In member function 'bool PZEM004T::recieve(uint8_t, uint8_t*)':

C:\Users\Angel\AppData\Local\Temp\arduino_build_805687\sketch\PZEM004T.cpp:137:37: error: 'class SoftwareSerial' has no member named 'listen'

     ((SoftwareSerial *)serial)->listen();

What version of software serial are you using?

olehs commented 6 years ago

see #14