My sketch has several Console.print statements. However I do not want these to happen if the IDE monitor is not open.
(to avoid not working OpenWrt reset without uboot upgrade).

How does Console.connected work? I know that if you do:

while(!Console) {}

you are actually waiting for the connected method.

Does the connected method always reflect wether the IDE monitor is open?

E.g. if I were to write:


would this stop doing Console writes when I disconnect the IDE monitor?