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

How to handle remote service like reboot with REST API

SOLVED
Highlighted

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

Re: How to handle remote service like reboot with REST API

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.

1 REPLY 1

Re: How to handle remote service like reboot with REST API

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.