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