Skip to main content
1-Visitor
June 14, 2019
Solved

How to handle remote service like reboot with REST API

  • June 14, 2019
  • 1 reply
  • 1021 views

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

Best answer by PaiChung

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

PaiChung22-Sapphire IAnswer
22-Sapphire I
June 17, 2019

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.