ynezz/librs232

Compiling error

itubal opened this issue · 3 comments

[josema@marengo librs232]$ ./autogen.sh
running: autoreconf --force --install --symlink --verbose
./autogen.sh: línea 6: autoreconf: no se encontró la orden
error: while running 'autoreconf --force --install --symlink --verbose'
[josema@marengo librs232]$

"no se encontró la orden" means "command not found" or similar

I'd installed it from luarocks.
Now i get an error.
Linux Fedora 25
the example program:
local rs232 = require "rs232"

local p, e = rs232.port('ttyUSB0',{
baud = '57600';
data_bits = '_8';
parity = 'NONE';
stop_bits = '_1';
flow_control = 'OFF';
rts = 'ON'
})
num,err = p:open()
print (num)
print (err)

The result:
nil
[RS232][OPEN] open error (2)

ynezz commented

You're using probably example from different project, which is not compatible with my library. Try to look at the example for this project.

rs232 = require('luars232')
e, p = rs232.open('/dev/ttyUSB0')
p:set_baud_rate(rs232.RS232_BAUD_57600)
p:set_rts(rs232.RS232_RTS_ON)