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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to handle remote service like reboot with REST API

sivaalagarsamy
3-Visitor

How to handle remote service like reboot with REST API

Hi, 
  I have a device that is using the REST API to update its properties on the Thingworx. I would like to have a service call on the Thing instance to make the device reboot.  Can the device poll the Thingworx platform for any pending reboot service request and reboot itself? 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

This will really depend on what the device is capable off.

1. If the device has a reboot service that can be invoked, it could potentially be done that way. Sounds very unlikely in this scenario.

2. The device must have a 'pick up instructions' type routine that fires either upon start up (if going on and off line frequently) or on a schedule etc. It can call a REST service on the Thingworx platform which returns the instructions.

then there has to be logic to process those instructions.

View solution in original post

1 REPLY 1

This will really depend on what the device is capable off.

1. If the device has a reboot service that can be invoked, it could potentially be done that way. Sounds very unlikely in this scenario.

2. The device must have a 'pick up instructions' type routine that fires either upon start up (if going on and off line frequently) or on a schedule etc. It can call a REST service on the Thingworx platform which returns the instructions.

then there has to be logic to process those instructions.

Top Tags