#ifdef CA_INT
virtual OCStackResult ListenForResource(const std::string& serviceUrl,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
FindCallback& callback,
QualityOfService QoS) = 0;
virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
- const std::string& deviceURI, uint8_t connectivityType,
+ const std::string& deviceURI, OCConnectivityType connectivityType,
FindDeviceCallback& callback,
QualityOfService QoS) = 0;
virtual OCStackResult GetResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType,
+ const std::string& uri, OCConnectivityType connectivityType,
const QueryParamsMap& queryParams,
const HeaderOptions& headerOptions,
GetCallback& callback, QualityOfService QoS)=0;
virtual OCStackResult PutResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType,
+ const std::string& uri, OCConnectivityType connectivityType,
const OCRepresentation& rep, const QueryParamsMap& queryParams,
const HeaderOptions& headerOptions,
PutCallback& callback, QualityOfService QoS) = 0;
virtual OCStackResult PostResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType,
+ const std::string& uri, OCConnectivityType connectivityType,
const OCRepresentation& rep, const QueryParamsMap& queryParams,
const HeaderOptions& headerOptions,
PostCallback& callback, QualityOfService QoS) = 0;
virtual OCStackResult DeleteResource(const std::string& host, const std::string& uri,
- uint8_t connectivityType, const HeaderOptions& headerOptions,
+ OCConnectivityType connectivityType, const HeaderOptions& headerOptions,
DeleteCallback& callback, QualityOfService QoS) = 0;
virtual OCStackResult ObserveResource(ObserveType observeType, OCDoHandle* handle,
- const std::string& host, const std::string& uri, uint8_t connectivityType,
- const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
- ObserveCallback& callback, QualityOfService QoS)=0;
+ const std::string& host, const std::string& uri,
+ OCConnectivityType connectivityType, const QueryParamsMap& queryParams,
+ const HeaderOptions& headerOptions, ObserveCallback& callback,
+ QualityOfService QoS)=0;
#else
virtual OCStackResult ListenForResource(const std::string& serviceUrl,
const std::string& resourceType, FindCallback& callback,
#ifdef CA_INT
virtual OCStackResult SubscribePresence(OCDoHandle* handle, const std::string& host,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
SubscribeCallback& presenceHandler)=0;
#else
virtual OCStackResult SubscribePresence(OCDoHandle* handle, const std::string& host,
#ifdef CA_INT
virtual OCStackResult ListenForResource(const std::string& serviceUrl,
- const std::string& resourceType, uint8_t connectivityType, FindCallback& callback,
- QualityOfService QoS);
+ const std::string& resourceType, OCConnectivityType connectivityType,
+ FindCallback& callback, QualityOfService QoS);
virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
- const std::string& deviceURI, uint8_t connectivityType, FindDeviceCallback& callback,
- QualityOfService QoS);
+ const std::string& deviceURI, OCConnectivityType connectivityType,
+ FindDeviceCallback& callback, QualityOfService QoS);
virtual OCStackResult GetResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const QueryParamsMap& queryParams,
- const HeaderOptions& headerOptions,
+ const std::string& uri, OCConnectivityType connectivityType,
+ const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
GetCallback& callback, QualityOfService QoS);
virtual OCStackResult PutResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const OCRepresentation& attributes,
- const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
- PutCallback& callback, QualityOfService QoS);
+ const std::string& uri, OCConnectivityType connectivityType,
+ const OCRepresentation& attributes, const QueryParamsMap& queryParams,
+ const HeaderOptions& headerOptions, PutCallback& callback, QualityOfService QoS);
virtual OCStackResult PostResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const OCRepresentation& attributes,
- const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
- PostCallback& callback, QualityOfService QoS);
+ const std::string& uri, OCConnectivityType connectivityType,
+ const OCRepresentation& attributes, const QueryParamsMap& queryParams,
+ const HeaderOptions& headerOptions, PostCallback& callback, QualityOfService QoS);
virtual OCStackResult DeleteResource(const std::string& host, const std::string& uri,
- uint8_t connectivityType, const HeaderOptions& headerOptions,
+ OCConnectivityType connectivityType, const HeaderOptions& headerOptions,
DeleteCallback& callback, QualityOfService QoS);
virtual OCStackResult ObserveResource(ObserveType observeType, OCDoHandle* handle,
- const std::string& host, const std::string& uri, uint8_t connectivityType,
+ const std::string& host, const std::string& uri, OCConnectivityType connectivityType,
const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
ObserveCallback& callback, QualityOfService QoS);
#else
#ifdef CA_INT
virtual OCStackResult SubscribePresence(OCDoHandle* handle, const std::string& host,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
SubscribeCallback& presenceHandler);
#else
virtual OCStackResult SubscribePresence(OCDoHandle* handle, const std::string& host,
*/
#ifdef CA_INT
OCStackResult findResource(const std::string& host, const std::string& resourceURI,
- uint8_t connectivityType, FindCallback resourceHandler);
+ OCConnectivityType connectivityType, FindCallback resourceHandler);
OCStackResult findResource(const std::string& host, const std::string& resourceURI,
- uint8_t connectivityType, FindCallback resourceHandler, QualityOfService QoS);
+ OCConnectivityType connectivityType, FindCallback resourceHandler,
+ QualityOfService QoS);
#endif
OCStackResult findResource(const std::string& host, const std::string& resourceURI,
FindCallback resourceHandler);
*/
#ifdef CA_INT
OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI,
- uint8_t connectivityType, FindDeviceCallback deviceInfoHandler);
+ OCConnectivityType connectivityType, FindDeviceCallback deviceInfoHandler);
OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI,
- uint8_t connectivityType, FindDeviceCallback deviceInfoHandler,
+ OCConnectivityType connectivityType, FindDeviceCallback deviceInfoHandler,
QualityOfService QoS);
#endif
OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI,
*/
#ifdef CA_INT
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
- uint8_t connectivityType, SubscribeCallback presenceHandler);
+ OCConnectivityType connectivityType, SubscribeCallback presenceHandler);
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
SubscribeCallback presenceHandler);
#endif
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
*/
#ifdef CA_INT
OCResource::Ptr constructResourceObject(const std::string& host, const std::string& uri,
- uint8_t connectivityType, bool isObservable,
+ OCConnectivityType connectivityType, bool isObservable,
const std::vector<std::string>& resourceTypes,
const std::vector<std::string>& interfaces);
#endif
*/
#ifdef CA_INT
OCStackResult findResource(const std::string& host, const std::string& resourceURI,
- uint8_t connectivityType, FindCallback resourceHandler);
+ OCConnectivityType connectivityType, FindCallback resourceHandler);
OCStackResult findResource(const std::string& host, const std::string& resourceURI,
- uint8_t connectivityType, FindCallback resourceHandler, QualityOfService QoS);
+ OCConnectivityType connectivityType, FindCallback resourceHandler,
+ QualityOfService QoS);
#else
OCStackResult findResource(const std::string& host, const std::string& resourceURI,
FindCallback resourceHandler);
*/
#ifdef CA_INT
OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI,
- uint8_t connectivityType, FindDeviceCallback deviceInfoHandler);
+ OCConnectivityType connectivityType, FindDeviceCallback deviceInfoHandler);
OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI,
- uint8_t connectivityType, FindDeviceCallback deviceInfoHandler,
+ OCConnectivityType connectivityType, FindDeviceCallback deviceInfoHandler,
QualityOfService QoS);
#else
OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI,
*/
#ifdef CA_INT
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
- uint8_t connectivityType, SubscribeCallback presenceHandler);
+ OCConnectivityType connectivityType, SubscribeCallback presenceHandler);
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
SubscribeCallback presenceHandler);
#else
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host,
*/
#ifdef CA_INT
OCResource::Ptr constructResourceObject(const std::string& host, const std::string& uri,
- uint8_t connectivityType, bool isObservable,
+ OCConnectivityType connectivityType, bool isObservable,
const std::vector<std::string>& resourceTypes,
const std::vector<std::string>& interfaces);
#else
* Function to get the connectivity type of this resource
* @return uint8_t connectivity type
*/
- uint8_t connectivityType() const;
+ OCConnectivityType connectivityType() const;
#endif
/**
OCResourceIdentifier m_resourceId;
std::string m_host;
#ifdef CA_INT
- uint8_t m_connectivityType;
+ OCConnectivityType m_connectivityType;
#endif
bool m_isObservable;
bool m_isCollection;
private:
#ifdef CA_INT
OCResource(std::weak_ptr<IClientWrapper> clientWrapper, const std::string& host,
- const std::string& uri, const std::string& serverId, uint8_t m_connectivityType,
- bool observable, const std::vector<std::string>& resourceTypes,
+ const std::string& uri, const std::string& serverId,
+ OCConnectivityType m_connectivityType, bool observable,
+ const std::vector<std::string>& resourceTypes,
const std::vector<std::string>& interfaces);
#else
OCResource(std::weak_ptr<IClientWrapper> clientWrapper, const std::string& host,
public:
#ifdef CA_INT
ListenOCContainer(std::weak_ptr<IClientWrapper> cw, const OCDevAddr& address,
- uint8_t connectivityType, std::stringstream& json):
+ OCConnectivityType connectivityType, std::stringstream& json):
m_clientWrapper(cw), m_address(address), m_connectivityType(connectivityType)
#else
ListenOCContainer(std::weak_ptr<IClientWrapper> cw, const OCDevAddr& address,
std::vector<std::shared_ptr<OC::OCResource>> m_resources;
std::weak_ptr<IClientWrapper> m_clientWrapper;
OCDevAddr m_address;
- uint8_t m_connectivityType;
+ OCConnectivityType m_connectivityType;
};
}
#ifdef CA_INT
virtual OCStackResult ListenForResource(const std::string& serviceUrl,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
FindCallback& callback, QualityOfService QoS)
{return OC_STACK_NOTIMPL;}
virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
- const std::string& deviceURI, uint8_t connectivityType, FindDeviceCallback& callback,
- QualityOfService QoS)
+ const std::string& deviceURI, OCConnectivityType connectivityType,
+ FindDeviceCallback& callback, QualityOfService QoS)
{return OC_STACK_NOTIMPL;}
virtual OCStackResult GetResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const QueryParamsMap& queryParams,
- const HeaderOptions& headerOptions, GetCallback& callback,
- QualityOfService QoS)
+ const std::string& uri, OCConnectivityType connectivityType,
+ const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
+ GetCallback& callback, QualityOfService QoS)
{return OC_STACK_NOTIMPL;}
virtual OCStackResult PutResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const OCRepresentation& attributes,
- const QueryParamsMap& queryParams,
+ const std::string& uri, OCConnectivityType connectivityType,
+ const OCRepresentation& attributes, const QueryParamsMap& queryParams,
const HeaderOptions& headerOptions, PutCallback& callback,
QualityOfService QoS)
{return OC_STACK_NOTIMPL;}
virtual OCStackResult PostResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const OCRepresentation& attributes,
- const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
- PostCallback& callback, QualityOfService QoS)
+ const std::string& uri, OCConnectivityType connectivityType,
+ const OCRepresentation& attributes, const QueryParamsMap& queryParams,
+ const HeaderOptions& headerOptions, PostCallback& callback, QualityOfService QoS)
{return OC_STACK_NOTIMPL;}
virtual OCStackResult DeleteResource(const std::string& host, const std::string& uri,
- uint8_t connectivityType, const HeaderOptions& headerOptions, DeleteCallback& callback,
- QualityOfService QoS) {return OC_STACK_NOTIMPL;}
+ OCConnectivityType connectivityType, const HeaderOptions& headerOptions,
+ DeleteCallback& callback, QualityOfService QoS)
+ {return OC_STACK_NOTIMPL;}
virtual OCStackResult ObserveResource(ObserveType observeType, OCDoHandle* handle,
- const std::string& host, const std::string& uri, uint8_t connectivityType,
+ const std::string& host, const std::string& uri, OCConnectivityType connectivityType,
const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
ObserveCallback& callback, QualityOfService QoS){return OC_STACK_NOTIMPL;}
#else
const HeaderOptions& headerOptions, QualityOfService QoS){return OC_STACK_NOTIMPL;}
#ifdef CA_INT
virtual OCStackResult SubscribePresence(OCDoHandle* handle, const std::string& host,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
SubscribeCallback& presenceHandler)
{return OC_STACK_NOTIMPL;}
#else
#ifdef CA_INT
OCStackResult InProcClientWrapper::ListenForResource(const std::string& serviceUrl,
- const std::string& resourceType, uint8_t connectivityType,
+ const std::string& resourceType, OCConnectivityType connectivityType,
FindCallback& callback, QualityOfService QoS)
#else
OCStackResult InProcClientWrapper::ListenForResource(const std::string& serviceUrl,
#ifdef CA_INT
OCStackResult InProcClientWrapper::ListenForDevice(const std::string& serviceUrl,
- const std::string& deviceURI, uint8_t connectivityType,
+ const std::string& deviceURI, OCConnectivityType connectivityType,
FindDeviceCallback& callback, QualityOfService QoS)
#else
OCStackResult InProcClientWrapper::ListenForDevice(const std::string& serviceUrl,
#ifdef CA_INT
OCStackResult InProcClientWrapper::GetResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const QueryParamsMap& queryParams,
- const HeaderOptions& headerOptions, GetCallback& callback,
- QualityOfService QoS)
+ const std::string& uri, OCConnectivityType connectivityType,
+ const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
+ GetCallback& callback, QualityOfService QoS)
#else
OCStackResult InProcClientWrapper::GetResourceRepresentation(const std::string& host,
const std::string& uri, const QueryParamsMap& queryParams,
#ifdef CA_INT
OCStackResult InProcClientWrapper::PostResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const OCRepresentation& rep,
+ const std::string& uri, OCConnectivityType connectivityType, const OCRepresentation& rep,
const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
PostCallback& callback, QualityOfService QoS)
#else
#ifdef CA_INT
OCStackResult InProcClientWrapper::PutResourceRepresentation(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const OCRepresentation& rep,
+ const std::string& uri, OCConnectivityType connectivityType, const OCRepresentation& rep,
const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
PutCallback& callback, QualityOfService QoS)
#else
#ifdef CA_INT
OCStackResult InProcClientWrapper::DeleteResource(const std::string& host,
- const std::string& uri, uint8_t connectivityType, const HeaderOptions& headerOptions,
- DeleteCallback& callback, QualityOfService QoS)
+ const std::string& uri, OCConnectivityType connectivityType,
+ const HeaderOptions& headerOptions, DeleteCallback& callback, QualityOfService QoS)
#else
OCStackResult InProcClientWrapper::DeleteResource(const std::string& host,
const std::string& uri, const HeaderOptions& headerOptions,
#ifdef CA_INT
OCStackResult InProcClientWrapper::ObserveResource(ObserveType observeType, OCDoHandle* handle,
- const std::string& host, const std::string& uri, uint8_t connectivityType,
+ const std::string& host, const std::string& uri, OCConnectivityType connectivityType,
const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
ObserveCallback& callback, QualityOfService QoS)
#else
#ifdef CA_INT
OCStackResult InProcClientWrapper::SubscribePresence(OCDoHandle* handle,
- const std::string& host, const std::string& resourceType, uint8_t connectivityType,
- SubscribeCallback& presenceHandler)
+ const std::string& host, const std::string& resourceType,
+ OCConnectivityType connectivityType, SubscribeCallback& presenceHandler)
#else
OCStackResult InProcClientWrapper::SubscribePresence(OCDoHandle* handle,
const std::string& host, const std::string& resourceType,
#ifdef CA_INT
OCResource::Ptr constructResourceObject(const std::string& host,
- const std::string& uri, uint8_t connectivityType,
+ const std::string& uri,
+ OCConnectivityType connectivityType,
bool isObservable,
const std::vector<std::string>& resourceTypes,
const std::vector<std::string>& interfaces)
OCStackResult findResource(const std::string& host,
const std::string& resourceName,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindCallback resourceHandler)
{
return OCPlatform_impl::Instance().findResource(host, resourceName,
OCStackResult findResource(const std::string& host,
const std::string& resourceName,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindCallback resourceHandler, QualityOfService QoS)
{
return OCPlatform_impl::Instance().findResource(host, resourceName, connectivityType,
OCStackResult getDeviceInfo(const std::string& host,
const std::string& deviceURI,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindDeviceCallback deviceInfoHandler)
{
return OCPlatform_impl::Instance().getDeviceInfo(host, deviceURI,
OCStackResult getDeviceInfo(const std::string& host,
const std::string& deviceURI,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindDeviceCallback deviceInfoHandler,
QualityOfService QoS)
{
//TODO-CA Revisit this API
#ifdef CA_INT
return OCPlatform_impl::Instance().findResource(host, resourceName,
- OC_WIFI | OC_ETHERNET, resourceHandler);
+ OC_WIFI, resourceHandler);
#else
return OCPlatform_impl::Instance().findResource(host, resourceName, resourceHandler);
#endif
//TODO-CA Revisit this API
#ifdef CA_INT
return OCPlatform_impl::Instance().findResource(host, resourceName,
- OC_WIFI | OC_ETHERNET, resourceHandler, QoS);
+ OC_WIFI, resourceHandler, QoS);
#else
return OCPlatform_impl::Instance().findResource(host, resourceName,
resourceHandler, QoS);
{
//TODO-CA Revisit this API
#ifdef CA_INT
- return OCPlatform_impl::Instance().constructResourceObject(host, uri, isObservable,
- OC_WIFI | OC_ETHERNET, resourceTypes, interfaces);
+ return OCPlatform_impl::Instance().constructResourceObject(host, uri, OC_WIFI,
+ isObservable, resourceTypes, interfaces);
#else
return OCPlatform_impl::Instance().constructResourceObject(host, uri, isObservable,
resourceTypes, interfaces);
FindDeviceCallback deviceInfoHandler)
{
#ifdef CA_INT
- return OCPlatform_impl::Instance().getDeviceInfo(host, deviceURI, OC_WIFI | OC_ETHERNET,
+ return OCPlatform_impl::Instance().getDeviceInfo(host, deviceURI, OC_WIFI,
deviceInfoHandler);
#else
return OCPlatform_impl::Instance().getDeviceInfo(host, deviceURI, deviceInfoHandler);
QualityOfService QoS)
{
#ifdef CA_INT
- return OCPlatform_impl::Instance().getDeviceInfo(host, deviceURI, OC_WIFI | OC_ETHERNET,
+ return OCPlatform_impl::Instance().getDeviceInfo(host, deviceURI, OC_WIFI,
deviceInfoHandler, QoS);
#else
return OCPlatform_impl::Instance().getDeviceInfo(host, deviceURI, deviceInfoHandler, QoS);
#ifdef CA_INT
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle,
const std::string& host,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
SubscribeCallback presenceHandler)
{
return OCPlatform_impl::Instance().subscribePresence(presenceHandle, host,
OCStackResult subscribePresence(OCPresenceHandle& presenceHandle,
const std::string& host,
const std::string& resourceType,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
SubscribeCallback presenceHandler)
{
return OCPlatform_impl::Instance().subscribePresence(presenceHandle, host,
//TODO-CA Revisit this API
#ifdef CA_INT
return OCPlatform_impl::Instance().subscribePresence(presenceHandle, host,
- OC_WIFI | OC_ETHERNET, presenceHandler);
+ OC_WIFI, presenceHandler);
#else
return OCPlatform_impl::Instance().subscribePresence(presenceHandle, host,
presenceHandler);
//TODO-CA Revisit this API
#ifdef CA_INT
return OCPlatform_impl::Instance().subscribePresence(presenceHandle, host,
- resourceType, OC_WIFI | OC_ETHERNET,
+ resourceType, OC_WIFI,
presenceHandler);
#else
return OCPlatform_impl::Instance().subscribePresence(presenceHandle, host,
#ifdef CA_INT
OCResource::Ptr OCPlatform_impl::constructResourceObject(const std::string& host,
- const std::string& uri, uint8_t connectivityType,
+ const std::string& uri,
+ OCConnectivityType connectivityType,
bool isObservable,
const std::vector<std::string>& resourceTypes,
const std::vector<std::string>& interfaces)
OCStackResult OCPlatform_impl::findResource(const std::string& host,
const std::string& resourceName,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindCallback resourceHandler)
{
return findResource(host, resourceName, connectivityType, resourceHandler, m_cfg.QoS);
OCStackResult OCPlatform_impl::findResource(const std::string& host,
const std::string& resourceName,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindCallback resourceHandler, QualityOfService QoS)
{
OCStackResult OCPlatform_impl::getDeviceInfo(const std::string& host,
const std::string& deviceURI,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindDeviceCallback deviceInfoHandler)
{
return result_guard(getDeviceInfo(host, deviceURI, connectivityType,
OCStackResult OCPlatform_impl::getDeviceInfo(const std::string& host,
const std::string& deviceURI,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
FindDeviceCallback deviceInfoHandler,
QualityOfService QoS)
{
#ifdef CA_INT
OCStackResult OCPlatform_impl::subscribePresence(OCPresenceHandle& presenceHandle,
- const std::string& host, uint8_t connectivityType,
+ const std::string& host,
+ OCConnectivityType connectivityType,
SubscribeCallback presenceHandler)
{
return subscribePresence(presenceHandle, host, "", connectivityType, presenceHandler);
OCStackResult OCPlatform_impl::subscribePresence(OCPresenceHandle& presenceHandle,
const std::string& host,
const std::string& resourceType,
- uint8_t connectivityType,
+ OCConnectivityType connectivityType,
SubscribeCallback presenceHandler)
{
return checked_guard(m_client, &IClientWrapper::SubscribePresence,
#ifdef CA_INT
OCResource::OCResource(std::weak_ptr<IClientWrapper> clientWrapper, const std::string& host,
const std::string& uri, const std::string& serverId,
- uint8_t connectivityType, bool observable,
+ OCConnectivityType connectivityType, bool observable,
const std::vector<std::string>& resourceTypes,
const std::vector<std::string>& interfaces)
: m_clientWrapper(clientWrapper), m_uri(uri), m_resourceId(serverId, m_uri),
}
#ifdef CA_INT
-uint8_t OCResource::connectivityType() const
+OCConnectivityType OCResource::connectivityType() const
{
return m_connectivityType;
}