I could use some help getting my function to operate correctly. Here is my setup so far: rpi gpio node set up as a button pin input, looking for 1 or 0...This is linked to the email node. You push the button and get an email. Email is sent successfully, but it sends a 1 or 0 depending on the state of the pin.
What I would like is a function node between my rpi gpio node and my email node. If button pin is HIGH/1, than send an email...If button pin is LOW/0, than do nothing.
Im really pretty good w/ Arduino IDE and coding, but rpi and Node-RED are very new to me. Im learning, but could use some help w/ this first example.
I appreciate any help you guys can give.