Hi,
i´m trying to send a hex code via extender[0].serial[0].send() command.
This looks like this:
var e=CF.extender[0];
var s=e.serial[0];
s.bitrate = 9600;
s.databits = 8;
s.parity = 0;
s.stopbits = 2;
s.send("0x1B,0x01,0x40,0x00,0x00 \r");
...but it didn´t work....
I also tried: s.send("1B 01 40 00 00 \r");
and: s.send("27 1 64 00 \r");
Any ideas?
I´m trying to control a remote Relay Interface Card, which works fine by using normal actions in ProntoEdit (but i´m trying to simplify the GUI which is only possible by using prontoscript :-)
PROBLEM SOLVED:
simply add \x to each hex byte in the string
Last edited by paffman
on August 13, 2007 06:57.