Commit b6943cdd authored by Jihun Ha's avatar Jihun Ha Committed by Uze Choi

Add log message for discovered secure resource in easy setup

Once a target secure resource is discovered, some of useful information of
the found resource are provided by log messages.

Change-Id: If41390c884e5520f51fed1601d626c1eda523c01
Signed-off-by: default avatarJihun Ha <>
Reviewed-on: default avatarjenkins-iotivity <>
Reviewed-by: default avatarUze Choi <>
parent 787da23d
......@@ -530,6 +530,35 @@ namespace OIC
return ES_ERROR;
OIC_LOG(DEBUG, ENROLEE_SECURITY_TAG, "Secured resource is found.");
OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "HOST: %s", m_securedResource->getDevAddr().c_str());
OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "SID: %s", m_securedResource->getDeviceID().c_str());
OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "Owned status: %d", m_securedResource->getOwnedStatus());
OicSecOxm_t selectedOTMethod;
if( OC_STACK_OK != m_securedResource->getOTMethod(&selectedOTMethod) )
selectedOTMethod = OIC_OXM_COUNT; // Out-of-range
OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "Selected OT Method: %d", (int)(selectedOTMethod));
OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "MOT Supported: %d", (int)(m_securedResource->isMOTSupported()));
OIC_LOG_V(DEBUG, ENROLEE_SECURITY_TAG, "MOT Enabled: %d", (int)(m_securedResource->isMOTEnabled()));
char uuidString[UUID_STRING_SIZE];
if(OCConvertUuidToString(m_securedResource->getDevPtr()->doxm->, uuidString))
OIC_LOG(ERROR, ENROLEE_SECURITY_TAG, "OCConvertUuidToString is failed");
return ES_OK;
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