This shows you the differences between two versions of the page.
|
iothings:laboratoare:2025:lab12 [2026/01/03 22:41] dan.tudose [Build, flash, test] |
iothings:laboratoare:2025:lab12 [2026/01/03 23:05] (current) dan.tudose [Build, flash, test] |
||
|---|---|---|---|
| Line 237: | Line 237: | ||
| Expected: | Expected: | ||
| - | * browser receives a response containing the latest sensor values | + | * browser receives a response containing "Hi" |
| - | ==== Troubleshooting ==== | + | <note>Assignment: Add a dynamic HTTP endpoint that serves the current contents of bme_log.dat as an HTML page with a 10‑second auto‑refresh. So, if you conect to http://[board-ip]:8080/bme_log it will automatically serve the contents of the log file.</note> |
| - | * No Wi‑Fi logs: | + | |
| - | * raise log level (e.g. default level or module-specific) | + | |
| - | * ensure Wi‑Fi mgmt is enabled | + | |
| - | * No IP address: | + | |
| - | * verify DHCP is enabled | + | |
| - | * ensure DHCP is started after link is up | + | |
| - | * “memory allocation failed” from Wi‑Fi adapter: | + | |
| - | * reduce concurrent HTTP clients | + | |
| - | * reduce buffer sizes (HTTP response buffer) | + | |
| - | * avoid repeated dynamic allocations in the HTTP thread | + | |
| - | * consider increasing heap pool size only if you have flash/RAM headroom | + | |
| - | * Browser connects but gets no response: | + | |
| - | * verify socket calls are using Zephyr’s socket headers | + | |
| - | * verify server binds to INADDR_ANY on the chosen port | + | |
| - | * ensure response includes valid HTTP headers and CRLF | + | |