serkri / SmartEVSE-3

Smart Electric Vehicle Charging Station (EVSE)
MIT License
75 stars 26 forks source link

Wifi debugging #23

Closed dingo35 closed 2 years ago

dingo35 commented 2 years ago

This PR adds the RemoteDebug library, which makes it possible to debug over wifi (for the case where you don't have a serial connection with your SmartEVSE device). The debugger can be enabled with the DEBUG_DISABLED switch. When compiled in, you can telnet to your SmartEVSE device via wifi and see all Serialprint messages.

Unfortunately it is not possible to do a #define Serial.print rdebugA , because the C++ preprocessor does not accept a dot; so all Serial.print statements had to be renamed. This PR maintains backwards compatibility with the old serial debug.