OK, I kind of got it working. The relay expects hex commands, so am using the \x escape char to send what I need.
commx.writeStr("\xFE\x01");
That turns the relay on. Cool beans!
However,
commx.writeStr("\xFE\x00");
Doesn't turn it back off, as it should...
254,1 to turn it on
254,0 to turn it off
Can't figure it out...
|