Commit 5f3c5825 authored by Joseph Morrow's avatar Joseph Morrow Committed by Ziran Sun

Fixed issue where "oic.wk.d" was removed from array of device types.

Change-Id: I54ee75be4e7bbb9ce4de2b656dabff4c6386d58f
Signed-off-by: default avatarJoseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9103Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarPhil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: default avatarMandeep Shetty <mandeep.shetty@intel.com>
Reviewed-by: default avatarDwarkaprasad Dayama <dwarka.dayama@samsung.com>
Reviewed-by: default avatarZiran Sun <ziran.sun@samsung.com>
parent 01f539d7
......@@ -231,7 +231,13 @@ OCStackResult OCSetDefaultDeviceEntityHandler(OCDeviceEntityHandler entityHandle
/**
* This function sets device information.
*
* @param deviceInfo Structure passed by the server application containing the device information.
* Upon call to OCInit, the default device type (i.e. "rt") has already been set to the default
* Device Type "oic.wk.d". You do not have to specify "oic.wk.d" in the OCDeviceInfo.types linked
* list. The default Device Type is mandatory and always specified by this Device as the first
* device type.
*
* @param deviceInfo Structure passed by the server application containing the device
* information.
*
* @return
* ::OC_STACK_OK no errors.
......
......@@ -3058,8 +3058,6 @@ OCStackResult OCSetDeviceInfo(OCDeviceInfo deviceInfo)
{
return OC_STACK_INVALID_PARAM;
}
deleteResourceType(resource->rsrcType);
resource->rsrcType = NULL;
while (type)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment