06.10.2016, 11:18
Do you need to check if port is present in the system?
Code:
if io.exists('/dev/ttyUSB0') then
alert('Port OK')
else
alert('Port not found')
end