So it looks like the bool operator is indeed overridden for the class HardwareSerial (also checked SoftwareSerial, it's the same mechanism there), but it always returns true, whatever the state of the connection
Jan Cumps : @richard_elkins is right. Actually I have only demonstrated how to use that. It's up to the user to put logic whatever he wants like he might reboot or he might stop execution or wait for certain time etc.
Top Comments