Open Swift-mamba opened 9 months ago
Hello,
I suggest you to check the return values of io.open
so you may have more information regarding the issue.
local fd = assert(io.open(portName, 'r+'))
The io.open
function could fail, see below on my computer where I do not have anything in COM4
> lua -e "print(io.open('\\\\.\\COM4', 'r+'))"
nil \\.\COM4: No such file or directory 2
Hope it helps and have a good day, Samuel
here is my code: