operator bool();
operator bool();
Check if the serail port is ready.
For Serial (USB port), it will check DTR signal to know that if the USB CDC serial connection is established or not (i.e. return true if PC side application opens the corresponding COM port, and return false if the application closes the port).
For Serial1, it will always return true.
UARTClass.h