serkri / SmartEVSE-3

Smart Electric Vehicle Charging Station (EVSE)
MIT License
71 stars 27 forks source link

RemoteDebug #76

Closed hunter-nl closed 1 year ago

hunter-nl commented 1 year ago

When building a debug version and try to debug over WiFi with telnet. The telnet command responds immediately with Connection refused How can I do the remote debug?

dingo35 commented 1 year ago

Edit include/evse.h:

  1. comment the #define DEBUG_DISABLED 1 line
  2. Change

    define LOG_EVSE LOG_INFO

    and/or

    define LOG_MODBUS LOG_WARN

to LOG_DEBUG (or any info level you want)

  1. Recompile & reflash

....and then a telnet server should be present at the default telnet port. Ignore the directions the telnet server presents because unfortunately they are not valid for SmartEVSE.

hunter-nl commented 1 year ago

Thanks. It’s working now.