Posts: 2
Joined: Tue Apr 18, 2017 8:03 pm

Node Red toggle function

Mon Jun 19, 2017 7:50 pm


Been fooling around with node-red for a simple application to make a pushbutton that sends tcp commands to third party gear.

I've run into a problem with the GPI. I want to send different commands on every second pulse from a momentary switch on the GPI. Its normally 1 and changes to 0 on button press. Is there a way to insert a function to send 1 on the first pulse, 0 on the next, 1 on the third and so on?

Hope you can help me :)

Return to “Other languages”

Who is online

Users browsing this forum: No registered users and 2 guests