Device Reboot

Device is in REGISTERED with all known objects.

An API interface is provided to initiate a Device Reboot. This is an example of how to use the Execute Operation (POST /devices) method for which the Adapter can choose to implement.

This uses the Execute Operation (POST) on:

  • Device, Object ID = device
  • Reboot, Resource = reboot
On completion of the Device Reboot, it is recommended that the Device must re-register to ensure that any change to the supported services or IP address are recorded in IMPACT IoT.
Table 1. Device reboot API format
Parameters Description
URL http://<adapter_hostname>:<port>/devices
Method POST
Content-Type application/json
Parameters

The parameters are:

  • device/0/endPointClientName - Specifies the Device serial number.
  • resource - Specifies the Device resource.
  • string - Specifies the resource value.
Sample Call
{"device/0/endPointClientName":"6npn1RTUtG",{
	"Write":[{
		      "resource": "device/0/reboot",
		      "string":"REBOOT"
		 }]
	}
}

Response Body:

{
"msg": "Success","code":1000
}
Success Code
Response Code: 200
Error Code
400 : Bad Request
401 : Unauthorized 
403 : Forbidden 
404 : Not Found