Function serial::is_open()

← Back to Class serial



Module serialClass serial → is_open()

Description

Get the open status of the serial port

serial::is_open()


Parameters

There are no parameters.


Return Value


Usage Example

import serial
 
arduino = serial("/dev/ttyACM0")
 
if arduino.is_open()
    writeln("Port is open")
else
    writeln("Port is not open")
endif