Update gpio PI / Redplc node chip error

Hello guys. I have just met node-red and I am working very hard. I’m struggling with a little problem, I have to read gpio pins from a raspberry and using the nodes loaded automatically I can not figure out how to update the pin status on demand (the node does not have an input). and I am here to find a solution to this problem.
meanwhile I saw that the node in object "Redplc node" presents this possibility, I tried to use it but I get chip error. Could it be because I have the other nodes (those installed by default) in use even if they are disabled?
I used all the raspberry gpio and I would not want to clear all the nodes to do the test.
I would prefer to stay with the nodes that I have already used in the complex flow (almenno for me). I’m sure there is a solution but I can’t find the right way, it would be enough to force the resending of the read state every few seconds or something like that.
Give me a tip... thank you

Joseph

There is usually no need, it will send a message any time it changes (and on startup) so just feed that into any nodes that need to know when it has changed. What are you doing with it that needs it to be resent every three seconds?

If you really want to resend the value every three seconds then feed the gpio node into a Trigger node configured as


Which will do what you want.

Thanks 1000 for the tip was decisive!

I need another tip:
I have a trigger that sends the state of a gpio out on brocker mqtt every 10 seconds, but I can’t get it to activate at reset or deploy, this creates me a misalignment of the data in case of system reboot and that’s not good for me.
thanks
giuseppe

flows.json (1.8 KB)

https://cookbook.nodered.org/basic/trigger-on-start
was simple... I use this software for a short time and I miss the simple things...
Thank you for your work!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.