Serial Communicator Mecanique Generale
Created using PowToon -- Free sign up at -- Create animated videos and. Since most serial communication tools are limited to ascii input and output. Serial communicator. Download Iformat. By tcbcats in forum Mecanique - IDE Replies: 4. It would be nice to be able to set up the MicroCode Loader and Serial Communicator so that the Serial Communicator will let go. By ctglabs in forum Mecanique - IDE.
You're right -- it doesn't work in most cases, and will almost always return true. The one board where it's actually functional is the Leonardo. According to the: On the Leonardo, if (Serial) indicates wether or not the USB CDC serial connection is open. For all other instances, including if (Serial1) on the Leonardo, this will always returns true. Basic serial connections (used by most Arduinos) usually don't care if anything is actually listening. It's not uncommon for embedded devices to send debug info by serial even when nothing is receiving it.
This has the advantage that the code's timing and behaviour won't change when debugging, which could cause all sorts of problems if you're trying to diagnose a problem reported in the field.