Wee need a way to easily set the debug level of the library in order to print out useful statistics for debugging purposes.
For start I imagine a simple debug macro setting a verbosity level which allows to print information to the debug console when receiving or sending commands to the PZEM module:
// For setting debug level verbosity
#define PZEM004TV30_DEBUG 0
// For configuring custom serial debug interface
#define PZEM004TV30_DEBUG_SERIAL Serial
The debug code should be conditioned by the DEBUG verbosity level and only compiled if required.
Wee need a way to easily set the debug level of the library in order to print out useful statistics for debugging purposes.
For start I imagine a simple debug macro setting a verbosity level which allows to print information to the debug console when receiving or sending commands to the PZEM module:
The debug code should be conditioned by the
DEBUG
verbosity level and only compiled if required.