Commit 9746d484 authored by Omkar Hegde's avatar Omkar Hegde Committed by Erich Keane

Fixed broken platform and device discovery

The stack result was not being set on forming
the payload. Also, the device payload was being set
into the incorrect variable.

Change-Id: I18875b9ba0bd9776f0914317617c3c5d66ed64f8
Signed-off-by: default avatarOmkar Hegde <omkar.m.hegde@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1681Reviewed-by: default avatarErich Keane <erich.keane@intel.com>
Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
parent e3adc784
......@@ -536,16 +536,24 @@ static OCStackResult HandleVirtualResource (OCServerRequest *request, OCResource
{
discoveryResult = OC_STACK_NO_MEMORY;
}
else
{
discoveryResult = OC_STACK_OK;
}
}
else if (virtualUriInRequest == OC_PLATFORM_URI)
{
OCPlatformPayload* payload = OCPlatformPayloadCreate(
payload = (OCPayload*)OCPlatformPayloadCreate(
OC_RSRVD_PLATFORM_URI,
&savedPlatformInfo);
if (!payload)
{
discoveryResult = OC_STACK_NO_MEMORY;
}
else
{
discoveryResult = OC_STACK_OK;
}
}
#ifdef WITH_PRESENCE
......
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