Is there any way of defining the monitor port in the main.cpp part of the sketch
(the same way as :
#define PLATFORMIO_UPLOAD_PORT COM4
I have several devices connected to COM-ports & I would like to define both upload port & monitor port in my main.cpp sketch…
(without having to open and changing this in platformio.ini every time I upload a sketch to a different COM-port).
I’ve searched the documentation but i’ve only found the upload_port environmental definition…