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


 

318
Online

8.2k
Users

9.1k
Topics

96.7k
Posts