PZEM004t Connecting NodeMCU ESP8266

I’ve tried all sorts of uploads but get an error message, posted below.

Can anybody help???

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o:(.text.setup+0x10): undefined reference to `PZEM004T::setAddress(IPAddress const&)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o: In function `HardwareSerial::begin(unsigned long)’:

E:\Documents and Settings\Cube\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\cores\esp8266/HardwareSerial.h:75: undefined reference to `PZEM004T::setAddress(IPAddress const&)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o:(.text.loop+0x10): undefined reference to `PZEM004T::voltage(IPAddress const&)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o:(.text.loop+0x1c): undefined reference to `PZEM004T::current(IPAddress const&)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o:(.text.loop+0x24): undefined reference to `PZEM004T::power(IPAddress const&)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o:(.text.loop+0x28): undefined reference to `PZEM004T::energy(IPAddress const&)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o:(.text.loop+0x43): undefined reference to `PZEM004T::voltage(IPAddress const&)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o: In function `loop’:

E:\Documents and Settings\Cube\My Documents\Arduino\PZEM004T-master\examples\PZEMDisplay/PZEMDisplay.ino:13: undefined reference to `PZEM004T::current(IPAddress const&)’

E:\Documents and Settings\Cube\My Documents\Arduino\PZEM004T-master\examples\PZEMDisplay/PZEMDisplay.ino:15: undefined reference to `PZEM004T::power(IPAddress const&)’

E:\Documents and Settings\Cube\My Documents\Arduino\PZEM004T-master\examples\PZEMDisplay/PZEMDisplay.ino:18: undefined reference to `PZEM004T::energy(IPAddress const&)’

E:\Documents and Settings\Cube\My Documents\Arduino\PZEM004T-master\examples\PZEMDisplay/PZEMDisplay.ino:21: undefined reference to `PZEM004T::PZEM004T(unsigned char, unsigned char)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o: In function `_GLOBAL__sub_I_pzem’:

E:\Documents and Settings\Cube\My Documents\Arduino\PZEM004T-master\examples\PZEMDisplay/PZEMDisplay.ino:21: undefined reference to `PZEM004T::PZEM004T(unsigned char, unsigned char)’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o: In function `__static_initialization_and_destruction_0’:

E:\Documents and Settings\Cube\My Documents\Arduino\PZEM004T-master\examples\PZEMDisplay/PZEMDisplay.ino:24: undefined reference to `PZEM004T::~PZEM004T()’

E:\DOCUME~1\Cube\LOCALS~1\Temp\arduino_build_955589\sketch\PZEMDisplay.ino.cpp.o: In function `_GLOBAL__sub_D_pzem’:

E:\Documents and Settings\Cube\My Documents\Arduino\PZEM004T-master\examples\PZEMDisplay/PZEMDisplay.ino:24: undefined reference to `PZEM004T::~PZEM004T()’

collect2.exe: error: ld returned 1 exit status

Using library SoftwareSerial at version 1.0 in folder: E:\Documents and Settings\Cube\Local Settings\Application Data\Arduino15\packages\esp8266\hardware\esp8266\2.4.1\libraries\SoftwareSerial
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).