// TODO Logging
printf("\tGoing from stack for List of Observers: Payload: %s\n", (char*)pBuffer);
- result = OCNotifyListOfObservers(resourceHandle, &observationIds[0],
+ result = OCNotifyListOfObservers(resourceHandle, &observationIds[0],
observationIds.size(), pBuffer);
delete(pBuffer);
{
throw e;
}
-
- return result;
}
+ return result;
}
void OCPlatform::init(const PlatformConfig& config)
}
}
}
- catch(std::exception e) // TODO : define our own exception
+ catch(std::exception e) // TODO : define our own exception
{
throw e;
}
}
- OCStackResult OCPlatform::startPresence(const unsigned int announceDurationSeconds)
- {
+ OCStackResult OCPlatform::startPresence(const unsigned int announceDurationSeconds)
+ {
if(m_server)
{
return m_server->startPresence(announceDurationSeconds);
}
}
- OCStackResult OCPlatform::subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
+ OCStackResult OCPlatform::subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
SubscribeCallback presenceHandler)
{
if(m_client)