Problem in Relay Actuator



  • I have a question about the Relay Actuator code.
    In line 43 it says "digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);"

    The part "message.sensor-1+RELAY_1" doesn't seem to work for me, if i change it to "message.sensor" the digitalWrite works.

    /Jesper


Log in to reply
 

Suggested Topics

  • 33
  • 9
  • 17
  • 8
  • 11
  • 3

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts