Hi Ryan,
Thanks for your advice. The rate limiting delay is not something I was aware of.
The frequency is however not the issue.
I am trying to have the flows input trigger be periodic using the inject node with a from scheduled expression, say every hour. Then I want to be able to grab the data from an MQTT topic at that moment.... Not when it eventually updates.
The use case would be the same for an HTTP get.... However I gather the implementations are different due to the pub/sub approach of MQTT.
Cheers,
Greg
--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/SZd1M3nU3gM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Julian, you know we have the item to make context more widely used by nodes. It has come up a number of times, you've commented on the issue itself. We will get there.
Greg, the only way a 'point in time' read would work with MQTT is if you are publishing every message with the retained flag set. The broker stores the most recent message with the retained flag set for each topic. Our MQTT nodes do not enable this sort of dynamic connect & subscribe pattern. Mark's suggested approach is the way to do it with the nodes we have.
Nick
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
RED.settings.functionGlobalContextJulian, by all means play, but please consider listening to what we already have planned and collaborate with us rather than go your own way.
This node will be completely redundant very soon and in fact will be unhelpful as it will not factor in the changes to context we have planned.
Nick
Nice!!! I think this will be a good addition to the node library as this seems to help cross-flow data sharing.
--
As Nick has said we are looking at how best to expose some of this context more widely - but we also want to be a bit careful... the whole point of a wiring type tool is to show what is connected to what - and what can affect what - and just allowing things to talk globally (ie not through wires drawn on the canvas) may make things more confusing rather than less. Hence why currently only functions support it - so the user is explicitly acting to use it.
Hi,
If I understand your suggestion correctly, you would have some nodes pulling values across wires rather than the normal push? We don't want to confuse the model by doing that.
The use of a shared context solves this problem in a very straight forward way. Once the Change and Switch nodes are able to access Context, which is the plan, it all becomes much easier to achieve without writing code in function blocks.
Nick
As Nick has said we are looking at how best to expose some of this context more widely - but we also want to be a bit careful... the whole point of a wiring type tool is to show what is connected to what - and what can affect what - and just allowing things to talk globally (ie not through wires drawn on the canvas) may make things more confusing rather than less. Hence why currently only functions support it - so the user is explicitly acting to use it.This is just an idea for you guys to ponder... but what if there was a node.... in my brain I called it a micro-node as it may appear smaller in the workspace.... which would get an input and set a global context type value. Then you'd take the output; once or many times, and wire it to a connection on the top (left) of another node (like function node), and then you'd use a node local context to reference that value.... and the flow execution would "pull" the current value from the "global micro-node". You could then wire certain values up to many nodes, see their connections, wire/unwire, etc. It would essentially be like passing variables to a function.
--
--
http://nodered.org
---
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/SZd1M3nU3gM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.