Skip to content

Commit a726141

Browse files
Copilotsofthack007
andcommitted
Enable enhanced debug logging for network troubleshooting
Added debugging configuration to help diagnose AsyncWebServer connection issues: 1. **wokwi.toml** - Added log level configuration: - logLevel = "warn" for general Wokwi output - logLevel = "debug" for network traffic logging on port forwarding - This will show detailed network traffic between localhost:8080 and target:80 2. **diagram.json** - Increased serial buffer: - bufferSize: 8192 (up from default) - Prevents serial output truncation during debugging - Ensures complete capture of firmware logs These changes provide visibility into: - Network connection attempts and failures - HTTP request/response traffic - AsyncWebServer initialization and operation - Any network-related errors or timeouts Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
1 parent 846159a commit a726141

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

test/wokwi/diagram.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"dependencies": {},
2323
"serialMonitor": {
2424
"display": "always",
25-
"newline": "lf"
25+
"newline": "lf",
26+
"bufferSize": 8192
2627
}
2728
}

test/wokwi/wokwi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ version = 1
55
firmware = "firmware-combined.bin"
66
elf = "firmware.elf"
77
gdbServerPort=3333
8+
logLevel = "warn" # Enable Wokwi debug logging (error, warn, info, debug, trace)
89

910
# Combined firmware layout:
1011
# 0x1000 - bootloader
@@ -15,3 +16,4 @@ gdbServerPort=3333
1516
# Forward the web server port
1617
from = "localhost:8080"
1718
to = "target:80"
19+
logLevel = "debug" # Log all network traffic for debugging AsyncWebServer issues

0 commit comments

Comments
 (0)