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
  • 6
  • 8
  • 3
  • 11
  • 2

0
Online

11.4k
Users

11.1k
Topics

112.7k
Posts