
// retrieveAllDevices()
@return json array
[{"n":"Light Control", "rt":["oic.d.light"], "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a", "state":"on-line"}]
<or>
[{"n":"Light Switch", "rt":["oic.d.light"], "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a", "state":"on-line"},
{"n":"Television","rt":["oic.d.tv"], "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a","state":"off-line"}]

// retrieveAllResources(String device_uuid)
@param device_uuid : "15ba3c25-8cdd-41f8-6f9e-fe49105dce0a"
@return json array
[{"n":"Light Switch", "uri":"/light", "rt":["oic.r.switch.binary"], "if":"RW"},
{"n":"Dimming Control","uri":"/dimming","rt":["oic.r.light.dimming"], "if":"RW"},
{"n":"Energy Consumption", "uri":"/EnergyConsumptionResURI", "rt": ["oic.r.energy.consumption"], "if":"S"},
{"n":"Color Temperature", "uri":"/ColourTemperatureResURI", "rt": ["oic.r.colour.colourtemperature"], "if":"A"}]

// doGetResourceProperties(String device_uuid, in String resource_uri)
@param device_uuid : "15ba3c25-8cdd-41f8-6f9e-fe49105dce0a"
@param resource_uri : "/light"
@return json object
{"n":"Light Switch", "value":true}

<or>
@param device_uuid : "15ba3c25-8cdd-41f8-6f9e-fe49105dce0a"
@param resource_uri : "/dimming
@return json object
{"n":"Dimming Control","dimmingSetting":100,"range":100,"step":10}

<or>
@param device_uuid : "15ba3c25-8cdd-41f8-6f9e-fe49105dce0a"
@param resource_uri : "/EnergyConsumptionResURI
@return json object
{"n":"Energy Consumption","power":200.1,"energy":3500.4}

<or>
@param device_uuid : "15ba3c25-8cdd-41f8-6f9e-fe49105dce0a"
@param resource_uri : "/ColourTemperatureResURI
@return json object
{"n":"Color Temperature", "ct":457, "range":1000, "step":1}

// doPostResourceProperties(in String device_uuid, in String resource_uri, in String prop_data)
@param device_uuid : "15ba3c25-8cdd-41f8-6f9e-fe49105dce0a"
@param resource_uri : "/light"
@param prop_data : { "value" : true }
@return boolean : true or false
<or>
@param device_uuid : "15ba3c25-8cdd-41f8-6f9e-fe49105dce0a"
@param resource_uri : "/dimming"
@param prop_data : { "dimmingSetting" : 50}
@return boolean : true or false

// void onResultReceived(int result_code, String result_data)
@param result code : 0-OK, 1-FAIL, 2-ERROR
@param result_data :
{"tid":"3481704581734918", "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a", "uri":"/light", "res_type":"GET", "res_data":{"n":"Light Switch","value":false}}

<or>
{"tid":"3481704581734922", "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a", "uri":"/light", "res_type":"POST", "res_data":{"n":"Light Switch","value":false}}

<or>
{"tid":"3481704581734922", "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a", "uri":"/light", "res_type":"OBSERVE", "res_data":{"n":"Light Switch","value":false}}

<or>
{"tid":"3481704581734918", "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a", "uri":"/dimming", "res_type":"GET", "res_data":{"n":"Dimming Control","dimmingSetting":100}}

<or>
{"tid":"3481704581734922", "sn":"15ba3c25-8cdd-41f8-6f9e-fe49105dce0a", "uri":"/dimming", "res_type":"POST", "res_data":{"n":"Light Switch","dimmingSetting":55}}
