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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Is it possible to send infotable value from JAVA SDK to Thingworx platform without datashape

jk-3
6-Contributor

Is it possible to send infotable value from JAVA SDK to Thingworx platform without datashape

Hi,

Is it possible to send infotable value from Edge SDK to Thingworx platform without datashape?


Example:

I have a datashape with two fields String and infotable. I am able to set and get the value for String. Not able to get the value for infotable.

   DataShapeDefinition dsd = new DataShapeDefinition();

  dsd.addFieldDefinition(new FieldDefinition("streamData", "INFOTABLE"));

  dsd.addFieldDefinition(new FieldDefinition("source", "STRING"));

  InfoTable ids = new InfoTable(dsd);

  i.addRow(v);

  vt.SetInfoTableValue("values",i);

  vt.SetStringValue("source", "LocalValue");


In platform i am not able to get the infotable value in streamData.


1 REPLY 1
dupatel
19-Tanzanite
(To:jk-3)

Jothi K​: In order to send Infotable value from SDK without datashape you can use VTQ services writepropertiesVTQ which has default data shape or by invoking UpdatePropertyValues . You will have to provide name, time, value and quality field vlaues. Use the field "value" to send your data to platform.

Let me know if this helps.

-Durgesh

Top Tags