Device Reset

Device is in REGISTERED with all known objects.

An interface is provided to initiate a Device Reset. This is an example of how to use the POST /devices method for which the Adapter can choose to implement.

This uses the Execute Operation (POST) on:

  • Device, Object ID = device
  • Factory Reset, Resource = factory reset

On completion of the Device Reset, it is recommended that the Device Re-register to ensure that any change to the supported services or IP address are recorded in the Server.

Table 1. Device reset 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/reset",
		      "string":"RESET"
		 }]
	}
}

Response Body:

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