HardwareSerial::operator bool()
Abstract
The HardwareSerial::operator bool() checks if the serial port is available or not.
Source Code
The HardwareSerial::operator bool() is defined in hardware/arduino/avr/cores/arduino/HardwareSerial.h as below.
|
|
It always return true.
Version
Arduino AVR Boards 1.8.6
Last Update
March 21, 2023