return result;
}
-#ifdef WITH_PRESENCE
OCStackApplicationResult subscribePresenceCallback(void* ctx,
OCDoHandle /*handle*/,
OCClientResponse* clientResponse)
return OC_STACK_KEEP_TRANSACTION;
}
-#endif
OCStackResult InProcClientWrapper::SubscribePresence(OCDoHandle* handle,
const std::string& host, const std::string& resourceType,
OCConnectivityType connectivityType, SubscribeCallback& presenceHandler)
{
-#ifdef WITH_PRESENCE
if (!presenceHandler)
{
return OC_STACK_INVALID_PARAM;
os.str().c_str(), nullptr,
nullptr, connectivityType,
OC_LOW_QOS, &cbdata, NULL, 0);
-#else
- return OC_STACK_NOT_IMPLEMENTED;
-#endif
}
OCStackResult InProcClientWrapper::UnsubscribePresence(OCDoHandle handle)
{
-#ifdef WITH_PRESENCE
OCStackResult result;
auto cLock = m_csdkLock.lock();
}
return result;
-#else
- return OC_STACK_NOT_IMPLEMENTED;
-#endif
}
#ifdef WITH_CLOUD