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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Unable to write thing property via script because things are showing not running

RK_10356304
10-Marble

Unable to write thing property via script because things are showing not running

Hi Team,

 

1. How to list out the device things via some script and inbuilt PTC service which are showing "Thing Not Running"?

2. Also let know how to write properties of things which are showing "Thing Not Running"?

Could you please share the snippet.

 

Thanks in advance.

2 REPLIES 2
PaiChung
22-Sapphire I
(To:RK_10356304)

Although a little 'lame' any service you invoke on a thing will error with a Thing Not Running or Enabled if it isn't.

So you can do a try catch and find them that way.

You can look into the 'Enabled' property as well and perhaps query for that using something like QueryImplementingThings

I would avoid 'mass enable/restart' of all entities/things as that might cause you performance issues.

jensc
17-Peridot
(To:RK_10356304)

Hello,

 

Perhaps this forum post is similar to your needs?

It was never marked as solved, but maybe it could help you.

Announcements


Top Tags