esp-rs / espflash

Serial flasher utility for Espressif SoCs and modules based on esptool.py
Apache License 2.0
471 stars 115 forks source link

Add a flag to wait for serial port (Feature request) #650

Open mikhail-m1 opened 2 months ago

mikhail-m1 commented 2 months ago

It would be nice to have a flag (something like --wait) to wait for serial port to appear in the system. I can make a PR if you are ready to merge it.

SergioGasquez commented 2 months ago

Hi! Do you mind elaborating on your use case for this flag? I guess you want to run the command and then plug the board? Will the command ever timeout?

mikhail-m1 commented 2 months ago

Yes, I want for the tool to monitor devices and connect as soon as device is plugged in. I don't think I need a timeout, I can always press CTRL+C. But I don't see why not to add it.

SergioGasquez commented 1 month ago

Hi! Sorry for the late reply, if this is something that would help your scenario we would be happy to accept your contribution