UniPi + NodeRed - Reading inputs



  • Hi guys,

    I am looking to read inputs from the UniPi board. I have connected a button to IO4 on the unipi and I have used the Johnny five nodes to create a listener. The node only ever outputs a 0 though. Flow code below. If you need more information about my setup please feel free to ask, sorry if I've been a bit vague!

    Any help is greatly appreciated.

    Cheers,

    Matt



  • Hi guys,

    I am looking to read inputs from the UniPi board. I have connected a button to IO4 on the unipi and I have used the Johnny five nodes to create a listener. The node only ever outputs a 0 though. Flow code below. If you need more information about my setup please feel free to ask, sorry if I've been a bit vague!

    Any help is greatly appreciated.

    Cheers,

    Matt



  • Hello,

    you forgot to paste the flow code… By the way have you tried it with the websocket as in the example http://flows.nodered.org/flow/4aa7ddad87f20f92031f ?