I’m working on a project with a mobile app that will request data from the agent. I would like the agent only to respond to the request when it has appropriate data from the device, but am having trouble getting that set up.
First question: Is the best way to do this to constantly poll the agent with the mobile app at some short interval and check the response for data? This does work just fine, but seems like excessive traffic.
I did program the agent and imp similarly to one of the Rocky examples that responds to a request only after getting data from the device, using the context.id, but even though my timeout is set to 30 seconds, the Agent responds with a timeout response after 10 seconds.