Skip to main content
1-Visitor
December 15, 2016
Question

How to execute services on TWX platform via edge SDK

  • December 15, 2016
  • 2 replies
  • 2873 views

Hi

I'm new to Thingworx and I working with Android Edge SDK to send some data to Thingworx Platform.

Now I want to execute Services that I created on Thingworx platform but I don't know how to do it.

Thank you very much.

2 replies

5-Regular Member
December 16, 2016

Hi Puntavut, is this service created on the platform or on the Edge SDK? In either case you will have to call this service and well there are several ways of doing so. The most common usage (keeping it simple) would be to create a Mashup and use any widget that can utilize the service you have created.

A simple scenario would be something like this

1. Create Mashup

2. Use couple of Value Display widgets and a button

3. Using the button call the service on Click event and display the output of the service

What you see below a example mashup just showing the kind of ThingTemplate i'm using for my Thing.

Here's just to give you an idea who it would look like :

In Mashup

Viewing the Mashup

You might want to check the ThingWorx Video Tutorials and the ThingWorx documentation from your own installation which you can access from Documentation

1-Visitor
December 16, 2016

Hi Sushant,

The service I want to execute is on platform but I want to execute on an Edge SDK

Actually, I want to create Thing and binding their properties on platform automatically when Edge SDK connect to platform.

Thank you for answer me.

5-Regular Member
December 27, 2016

Hello Puntavut Lertpunyavuttikul

There is a document with examples named "ThingWorx Edge Android SDK Developer's Guide"

http://support.ptc.com/WCMS/files/170147/en/ThingWorx_Edge_Android_SDK_Developers_Guide.pdf

Do these information from this article help you?

5-Regular Member
December 29, 2016

The ConnectedThingClient has a method called invokeService that you can call to invoke a server-side service from the edge.