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

Syntax of updating the property VTQ

SOLVED
Highlighted

Re: Syntax of updating the property VTQ

Hi @slangley ,

Unfortunately I'm unable to find the solution and I've changed the way of solving my problem now I'm reading csv file on Thingworx platform instead of through agent.

Copying the file from agent to the server and then reading it on server.

 

Best Regards,

Naeem

Highlighted

Re: Syntax of updating the property VTQ

Hi @slangley ,

After reading this article it is possible to update the time property as well.

https://www.ptc.com/en/support/article?n=CS319572&source=Case%20Viewer

 

Thank You for support!

Highlighted

Re: Syntax of updating the property VTQ

Thank You @Chandler1 ,

I'm talking about calling services of Thingworx in agent (LUA EMS).

 

For example:

properties.Signal_Q30={baseType="NUMBER", pushType="ALWAYS", value=0}

serviceDefinitions.GetSystemProperties(
     output { baseType="BOOLEAN", description="" },
     description { "updates properties" }
)

services.GetSystemProperties = function(me, headers, query, data)
     log.trace("[TemplateRilevatore]","########### in GetSystemProperties#############")
     queryHardware()
     -- if properties are successfully updated, return HTTP 200 code with a true service return value
     return 200, true
end
function queryHardware()
     name = "Signal_Q30"
     value = 2
     UpdatePropertyValue(name, value) --Service on Thingworx platform

end

Highlighted

Re: Syntax of updating the property VTQ

Hi @mnaeem.

 

I realize that you've already marked a solution to this post, but since a couple of replies have since been received, I want to be sure you don't have any remaining questions.  Please let us know.

 

Regards.

 

--Sharon

Highlighted

Re: Syntax of updating the property VTQ

Hi @slangley ,

Unfortunately I'm unable to find the solution and I've changed the way reading reading csv file on Thingworx platform instead of through agent.

Copying the file from agent to the server and then reading it on server.

It was the fastest way.

 

Thank You,

naeem

View solution in original post

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________