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

98
Online

9.4k
Users

10.1k
Topics

104.6k
Posts