How to get last value repeated for a path on the server? #161
Replies: 5 comments
-
Sorry, I don’t understand your question. What is it that you’d like to happen? |
Beta Was this translation helpful? Give feedback.
-
I want to receive data periodically, even if there is none. That is, if there are no events in the stream, I want the event handling function to be executed periodically anyway. It's easy in PHP, but I haven't found a way here. |
Beta Was this translation helpful? Give feedback.
-
Beware that there may be several sources producing data for a single path, so sending repeatedly the latest value may or may not be what you want. I don't know what you need it for, but this seems something you'd do in your application/plugin, not as part of the server API. Gemini's solution:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, but I just need it applied to the server API... Ok, no is no. We'll do as we can, not as we should. Or don't do it at all. |
Beta Was this translation helpful? Give feedback.
-
Well, I provided the code, you need to use it and ”apply it to the server api”. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The app.streambundle.getSelfStream(path) function returns the path value by event in the patn.
Is there any way to get values by event, and if there are none, then at a specified time interval?
Beta Was this translation helpful? Give feedback.
All reactions