- Wed Dec 24, 2014 1:01 am
#5577
For my particular scenario, I don't know that creating a batch file and then futzing with commandline parameters gets me enough of what I'm looking for. In the instances where I'm switching ports on the fly, I don't want to have to exit out of TERMIE just to restart the batch file. Plus, as you're aware, the environment variable would pass to DEVENV.EXE (which, of course, is why you're launching it from the batch file) and so Visual Studio would have to be restarted every time as well to ensure that the MAKE.EXE process started from within Visual Studio also gets the new value for the environment variable. (I realize YOU already know this stuff, peteben, I mention it for other readers that might not know it and that want to follow along with the discussion.)
The information of what COMx port number is being used is dynamic, and I'm looking to minimize the work I need to do every time it changes - even if the frequency of change becomes "rarely".
I can just make the mod to ESPTOOL-PY and TERMIE myself along the lines of: a) if the TERMIE named pipe exists, ESPTOOL-PY will get the COMx port, baud, etc from the pipe (if possible); b) otherwise it will use the hard-coded parms. So, TERMIE will work standalone just fine because if it's never asked for the port info, it won't offer it, and ESPTOOL-PY is ok standalone because if the port info is not available from TERMIE, it'll use the hard-coded values just like it's doing now. It's added functionality/value with no downsides that I can see. (Other than the one-time cost of a little bit of my development time.
)
Thank you for considering the idea, though!
- berniem