DeviceList_t &list);
/**
+ * API is responsible for discovery of devices in specified endpoint.
+ * It will return when found one or more device even though timeout is not exceeded
+ *
+ * @param timeout Timeout in seconds, time until which function will listen to
+ * responses from server before returning the list of devices.
+ * @param host address of target endpoint
+ * @param connType connectivity type of endpoint
+ * @param list List of devices.
+ * @return ::OC_STACK_OK in case of success and other value otherwise.
+ */
+ static OCStackResult discoverSecureResource(unsigned short timeout,
+ const std::string& host,
+ OCConnectivityType connType,
+ DeviceList_t &list);
+
+ /**
* API for registering Ownership transfer methods for a particular transfer Type.
*
* @param oxm Ownership transfer method.