NetDebug: switch between serial/netdebug, store ip and port in settings

pio.ini: enable WLED_DEBUG_HOST in esp32_4MB_M_debug and esp32_16MB_M_debug

audio_reactive, um6050, wled.h
- replace DEBUGOUT.print(x) by DEBUGOUT(x) etc

wled.h: switch between serial/netdebug

cfg.cpp, set.cpp, wled.cpp, xml.cpp
- store netDebugPrintIP and netDebugPrintPort in cfg.json

index.js: rename info tab on off to Net Debug

settings.sync: add netdebug

net_debug.h/cpp: use global netDebugPrintIP remove debugPrintHostIP
This commit is contained in:
Ewoud
2023-02-24 15:40:16 +01:00
parent 6651b412cb
commit bb6662ee35
15 changed files with 1435 additions and 1363 deletions

View File

@@ -938,8 +938,9 @@ build_flags = ${esp32_4MB_M_base.build_flags}
-D WLED_RELEASE_NAME=esp32_4MB_M_debug
-D WLED_DEBUG ; lots of generic debug messages
-D SR_DEBUG ; some extra debug messages from audioreactive
; -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
; -D WLED_DEBUG_NET_PORT=1768 ;; port for network debugging. default = 7868
;WLEDMM: only setting WLED_DEBUG_HOST is enough, ip and port can be defined in sync settings as well
-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
; -D MIC_LOGGER ; for sound input monitoring & debugging (use arduino serial plotter)
monitor_filters = esp32_exception_decoder
@@ -951,8 +952,8 @@ build_flags = ${esp32_4MB_M_base.build_flags}
-D WLED_RELEASE_NAME=esp32_16MB_M_debug
-D WLED_DEBUG ; lots of generic debug messages
-D SR_DEBUG ; some extra debug messages from audioreactive
; -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
; -D WLED_DEBUG_NET_PORT=1768 ;; port for network debugging. default = 7868
-D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
-D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
; -D MIC_LOGGER
-D CORE_DEBUG_LEVEL=4 ;; 0=none, 1=error, 2=warning, 3=info, 4=debug, 5=verbose
board = ${Board_ESP32_16MB.board}
@@ -1306,7 +1307,7 @@ build_flags = ${common.build_flags} ${esp32s2.build_flags}
;-D STATUSLED=-1
-D WLED_USE_MY_CONFIG
; -D WLED_DEBUG_HOST='"192.168.xxx.xxx"' ;; to send debug messages over network to host 192.168.x.y - FQDN is also possible
; -D WLED_DEBUG_NET_PORT=1768 ;; port for network debugging. default = 7868
; -D WLED_DEBUG_PORT=1768 ;; port for network debugging. default = 7868
; -D WLED_DEBUG
; -D SR_DEBUG
; -D MIC_LOGGER