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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Pushing Data to Manufactruing App with Non-Kepware Client

mberber
11-Garnet

Pushing Data to Manufactruing App with Non-Kepware Client

Hello Everyone;

Ewon Flexy 201

We have an eWON Flexy 201 device which connected PLC through ethernet. This device can read live data from PLC and with its Wifi/Ethernet modules, can push data to local/remote server using BASIC script language. 

 

We can send live data to our remote Thingworx Platform using <host-ip-adress>/Thingworx/Things/<thing-name>/Properties/*

 

ONCHANGE "DB2x20", "@UpdateThingWorxProperty('xxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxx','DB2x20')"

FUNCTION UpdateThingWorxProperty($appKey$,$Tagname$)
$url$ = "http://<host-ip-adress>/Thingworx/Things/<thing-name>/Properties/*"
$method$ = "PUT"
$Tagvalue = GETIO $Tagname$
$Tagvalue_String$ = STR$ $Tagvalue
$DataToSend$ = '{"' + $Tagname$ + '":' + $Tagvalue_String$ + '}'
$header$ = "Content-Type=application/json&Accept=application/json&appKey=" + $appKey$
REQUESTHTTPX $url$, $method$, $header$, $DataToSend$
PRINT "Value of " + $Tagname$ + " is sent to ThingWorx"
ENDFN
End

 But we cant send live data to Thingworx Manufacturing App, because i thing TMA using different path for its Api. Thingworx/WS

 

I have tried to send data to this url(s). But we had no luck so far.

http://<host-ip-adress>/Thingworx/WS/<thing-name>/Properties/*
http://<host-ip-adress>/Thingworx/WS/<thing-name>

 

How can i push data to Thingworx Manufacturing App with Non-Kepware Client ? 

 

Any help will be appreciated.

 

Thank you.

Murat Can

mberber@brandit.tech

2 REPLIES 2
mthakker
6-Contributor
(To:mberber)

Hi Murat,

 

The ThingWorx manufacturing apps use the base things that are in the platform.  So long as you created the "Thing" with the proper "ThingTemplate," you should be able to see the tag values in the apps.  You'll also have to update the monitored properties infotable on the "Thing" if you're sourcing in dynamic data.

 

Thanks,

 

Milan

mthakker
6-Contributor
(To:mthakker)

I also realize that this didn't fully answer your question.  You should continue to use the URL that is currently working, not the one that uses /ThingWorx/WS

Top Tags