Renaud11232 / pyduinocli

pyduinocli is a wrapper library around arduino-cli to make the arduino-cli calls easy from a python script.
MIT License
16 stars 1 forks source link

Print output before command has completed #5

Closed mkals closed 2 years ago

mkals commented 2 years ago

During commands like upload that take some time, it would be nice to be able to show the stdout information produced by the command before the function returns - is this possible to achieve?

Renaud11232 commented 2 years ago

Hello,

I don't think this is possible due to the way arduino-cli works. AFAIK, it only prints the output right before exiting. So I don't see any way to do this.

Do you know a board that actually makes arduino-cli progressively print text on the console ?

mkals commented 2 years ago

Ok, thanks for your reply! I was thinking of the output reporting progress and completion of the compilation, contact with the board and initiating flashing. For STM32 boards for example, Arduino-CLI exhibits this behaviour.