Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Hello ,
I have created 2 things on my locally hosted Thingworx foundation server. There things belongs to 2 different templates.
I want to access data simultaneously using rest api or any other endpoint to my nodeJs web application. I am getting data in an interval of 1 second. Thus I cannot make 2 successive ajax calls to get data individually as huge latency is involved.
Kindly suggest how this can be done.
PS Note : I am able to get data individually for 1 sensor at a time using ajax call to the rest endpoint.
Regards,
Aarushi
Solved! Go to Solution.
Hi @aarushi_mittal2.
If we're understanding correctly, you could create a service that would wrap the services for the 2 things. You would need to combine the return from both services in such a way that your application can interpret it, such as an infotable merge.
If this does not answer your question, please provide more information on your use case and the application on the other end, and we will try to suggest a solution.
Regards.
--Sharon
Hi @aarushi_mittal2.
If we're understanding correctly, you could create a service that would wrap the services for the 2 things. You would need to combine the return from both services in such a way that your application can interpret it, such as an infotable merge.
If this does not answer your question, please provide more information on your use case and the application on the other end, and we will try to suggest a solution.
Regards.
--Sharon
Hi @aarushi_mittal2.
If my previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon