03.02.2021, 09:45
Are you sure that data is being sent to the port? Try this and post what you get in Logs tab.
Code:
if not port then
require('serial')
port = serial.open('/dev/RS232', { baudrate = 9600 })
port:flush()
line = ''
end
char, err = port:read(1, 60)
log(char, err)