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.

1
operator bool() { return true; }

It always return true.

Version

Arduino AVR Boards 1.8.6

Last Update

March 21, 2023

inserted by FC2 system