View Single Post
  #21 (permalink)  
Old 04-23-2009, 07:42 PM
dmennenoh dmennenoh is offline
Junior Member
 
Join Date: Mar 2009
Posts: 12
Default

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...
Reply With Quote