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


 

206
Online

8.8k
Users

9.5k
Topics

100.2k
Posts