Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Keys to utilizing the C and Java SDK for ThingWorx application development
This project will introduce to coding examples utilized for SDKs to be used with Java and C. You can also use the Java SDK for Android development.
Following the steps in this guide, you will be better prepared to creating your own application using one of our SDKs.
We will teach you how to handle Properties, Entities, data, make Service calls and creating Remote Services.
NOTE: The estimated time to complete this guide is 30 minutes.
he ThingWorx SDKs follows a three-step process when connecting to the ThingWorx Platform.
NOTE: In this context, Client refers to the application and the SDK running on the device and Server refers to the ThingWorx Platform.
The client opens a Websocket to the server using the host and port. With the ThingWorx platform you can connect via HTTP and HTTPS with access to Services, Properties, Events, Entities, and Resources.
In order to connect and access information from the server, you must utilize an authorization method. Application Keys provide a secure method for the SDK to log into the platform and perform transactions. The client sends an authentication message to the server containing an Application Key.
Binding is an optional step in the client connection process. The SDK client allows one or more VirtualThings to be associated with a Websocket connection, using their names or identifiers. Binding a property in your ThingWorx application to that of your source code provides several benefits, including being able to update properties while offline.