Skip to main content
1-Visitor
Dec 21, 2015 10:00 PM UTC
Question

Extension: Event Subscription

Hello everyone!!!

I'm trying to figure out if it's possible for a Java extension to subscrive to an event which is defined on the ThingWorx IoT Platform. The Idea is that I have an Android app that sends data to the Platform. If somethings happens, for example the CPU Usage is too High I will trigger and event.

Is there any way I can subscrive to the event CPU Usage from my Java Extension so that when the envent occurs my extension automatically runs an handler??

Hope some of you will be able to help me with this!!!

Have a good day everyone!

5 replies

1-Visitor
Dec 23, 2015 10:44 PM UTC

Hi,

what do you mean by the Java extension ? Is that a ThingWorx component ?

Translate
mbonelli11-VisitorAuthor
1-Visitor
Dec 24, 2015 10:21 AM UTC

Hi,

what I was trying to say is that I wanna make a Java Application for PC that connects to the ThingWork IoT Platform using the Java ThingWorx SDK. The goal is that I want the java application to detect the events that occur on the platform automatically.

Is there any API that allows me to do that in the SDK? is it even possible to do something like this?

The only way I thought of doing it is to define a Virtual Thing in the Java App, define a service and on the Platform bind the Virtual Thing service to the event. I don't know if this is possible or if there is a simplier way to do this, maybe without defining a Virtual Thing.

Thanks for the answer, I really appreciate your help!

Ps. I found some documentation on the ThingWorx SDK APIs at the following link but it doesn't say much on what the APIs actually do. Is there any other place I can find more informations?

http://support.ptc.com/cs/help/thingworx_hc/thingworx_edge/

Translate
1-Visitor
Dec 28, 2015 10:29 AM UTC

Did you see this thread: Extension : Thingworx Event Subscription​

Translate