Commit ea7545ef authored by Nathan Heldt-Sheller's avatar Nathan Heldt-Sheller Committed by Aleksey

[IOT-3090] disable /sp Resource

/sp Resource must be temporarily disabled until CTT is updated to recognize
it (~Bangkok point release) else it causes CTT failures.

Change-Id: Id52c8acaf5a76e727bedf28288c08472255a988a
Signed-off-by: Nathan Heldt-Sheller's avatarNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
parent 0bba2f80
......@@ -939,9 +939,13 @@ OCEntityHandlerResult SpEntityHandler(OCEntityHandlerFlag flag,
return ehRet;
}
#define SP_RESOURCE_DISABLE
OCStackResult CreateSpResource()
{
OCStackResult ret = OCCreateResource(&gSpHandle,
OCStackResult ret = OC_STACK_OK;
#ifndef SP_RESOURCE_DISABLE
ret = OCCreateResource(&gSpHandle,
OIC_RSRC_TYPE_SEC_SP,
OC_RSRVD_INTERFACE_DEFAULT,
OIC_RSRC_SP_URI,
......@@ -954,6 +958,10 @@ OCStackResult CreateSpResource()
OIC_LOG(FATAL, TAG, "Unable to instantiate sp resource");
DeInitSpResource();
}
#else
OIC_LOG_V(WARNING, TAG, "/sp Resource disabled in this build; not creating Resource.");
#endif // SP_RESOURCE_DISABLE
return ret;
}
......
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