Using Ubuntu Linux, I can successfully manipulate my esp32 board with adafruit-ampy but when I 'ampy run file.py' I can see no output on my console. The code executes on the device but the Linux console is pretty idle by the time the code breaks, only then some of the content I'd expect to see in realtime is printed on STDOUT.
This must be some Linux IO setting, any idea?
Cheers, /e
'ampy run' does not print to output in realtime
Re: 'ampy run' does not print to output in realtime
Linux supports 3 buffering modes. Unbuffered, line buffered, and fully. IIRC stderr is line buffered and stdout is fully buffered. Fully buffered typically collects 4-8K off data before outputting. You can call flush() to force data to be written.