cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Creating a thing (JAVA SDK)

NB_9778056
4-Participant

Creating a thing (JAVA SDK)

Hello, 

 

I have the Java SDK to develop on eclipse a simple client. 

I use the SimpleClient app provided by PTC, and i'm now trying to create a thing. 

The connection seems ok, as I can read properties of this thing. 

Could you help me ? 

Here are the screenshots : 
(none of the methods here have worked)

NB_9778056_0-1623240842112.png

NB_9778056_1-1623240894034.png

The code in the service is inspired by this post : https://community.ptc.com/t5/ThingWorx-Developers/Creating-a-Thing-from-a-Virtual-Thing-Service-Java-SDK/td-p/524955

 

Info : when I execute the service directly from the composer by pressing 'execute', it's works well. 

 

Thnak you very much 

ACCEPTED SOLUTION

Accepted Solutions

Hello,

 

It looks like you're trying to trigger/invoke a service. You can see how to do it below in the highlighted area. The code you have is to trigger/fire an event.

 

thingw0rxgenie_1-1623243914173.png

 

View solution in original post

2 REPLIES 2

Hello,

 

It looks like you're trying to trigger/invoke a service. You can see how to do it below in the highlighted area. The code you have is to trigger/fire an event.

 

thingw0rxgenie_1-1623243914173.png

 

of course ! 

It works.

 

Thank you very much 

Announcements


Top Tags