{
namespace OCPlatform
{
- void Configure(const PlatformConfig& config)
+ OCStackResult Configure(const PlatformConfig& config)
{
- OCPlatform_impl::Configure(config);
+ return OCPlatform_impl::Configure(config);
+ }
+
+ OCStackResult start()
+ {
+ return OCPlatform_impl::Instance().start();
+ }
+
+ OCStackResult stop()
+ {
+ return OCPlatform_impl::Instance().stop();
}
OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler)
connectivityType, resourceHandler, QoS);
}
+ OCStackResult findResourceList(const std::string& host, const std::string& resourceURI,
+ OCConnectivityType connectivityType, FindResListCallback resourceHandler,
+ FindErrorCallback errorHandler, QualityOfService QoS)
+ {
+ return OCPlatform_impl::Instance().findResourceList(host, resourceURI,
+ connectivityType, resourceHandler, errorHandler, QoS);
+ }
+
OCStackResult getDeviceInfo(const std::string& host,
const std::string& deviceURI,
OCConnectivityType connectivityType,
connectivityType);
}
#endif // WITH_CLOUD
+#ifdef TCP_ADAPTER
+ OCStackResult findKeepAliveResource(std::string host, KeepAliveCallback resultCallback)
+ {
+ return OCPlatform_impl::Instance().findKeepAliveResource(host, resultCallback);
+ }
+
+ OCStackResult sendKeepAliveRequest(std::string host, const OCRepresentation& rep,
+ KeepAliveCallback pingHandler)
+ {
+ return OCPlatform_impl::Instance().sendKeepAliveRequest(host, rep, pingHandler);
+ }
+#endif
OCStackResult getDeviceId(OCUUIdentity *deviceId)
{