Did *anybody* get this to work?
I haven't seen any example except the one in Loxone's script doc page.
Here is my code. It does nothing:/ Also if I change the tty name, it also does nothing. So there is nothing to indicate I have the right tty name, but the name of the extension is definitely "rs485".
char testString[5] = {1, 2, 3, 4, 5};
STREAM *rs485 = stream_create("/dev/tty/rs485", 0, 0);
stream_write(rs485, testString, 5);
stream_flush(rs485);
stream_close(rs485);
As a sub-question - anyone know how look at the linux filesystem on the miniserver? I'd like to peek into /dev/tty to see what the port is actually named.