For platforms where softserial is supported SoftwareSerial lib is always linked to the firmware even if not used in sketch at all, it would be nice to have a build-time flag that could disable it.
Adding "-DPZEM004_NO_SWSERIAL" to build_flags completely disables SoftwareSerial lib
and saves some mcu resources. This could save up to 520/68/72 bytes of text/data/bss
mem for esp8266 platform.
For platforms where softserial is supported SoftwareSerial lib is always linked to the firmware even if not used in sketch at all, it would be nice to have a build-time flag that could disable it. Adding "-DPZEM004_NO_SWSERIAL" to build_flags completely disables SoftwareSerial lib and saves some mcu resources. This could save up to 520/68/72 bytes of text/data/bss mem for esp8266 platform.