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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

SDK Reference Part 1

No ratings

 

 

Keys to utilizing the C and Java SDK for ThingWorx application development

 

GUIDE CONCEPT

 

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.

 

 

YOU'LL LEARN HOW TO

 

  • How to create, update, and retrieve Property values
  • Utilize Data Shapes for handling data and triggering Events
  • Construct Info Tables for Services and retrieving data after Service calls
  • Add key features of an edge/remote application

 

NOTE: The estimated time to complete this guide is 30 minutes.

 

 

Step 1: Connection Process

 

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.

 

Websocket

 

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.

 

Authentication

 

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

 

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.

 
 
Click here to view Part 2 of this guide.
Version history
Last update:
‎Mar 07, 2023 08:15 AM
Updated by:
Labels (1)