Skip to main content
Jun 14, 2019 7:33 PM UTC
Solved

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

PaiChungAnswer
Jun 17, 2019 5:17 PM UTC

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

PaiChungAnswer
Jun 17, 2019 5:17 PM UTC

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.