#include "ic-dbus.h"
-#define ICL_DBUS_TIMEOUT_DEFAULT 10 /* 10 sec */
+#define ICL_DBUS_TIMEOUT_DEFAULT 30 /* 30 sec */
#define ICL_DBUS_TIMEOUT_MAX 60 /* 60 sec */
int ret;
if (ICL_DBUS_TIMEOUT_MAX < timeout_seconds || timeout_seconds <= 0) {
- ERR("Invalid seconds (%d)", timeout_seconds);
+ ERR("timeout_seconds(%d) must be in range from 1 to 60", timeout_seconds);
return IOTCON_ERROR_INVALID_PARAMETER;
}
/**
* @brief Specifies the type of function passed to iotcon_add_presence_cb().
* @details Called when client receive presence events from the server.
+ * The @a response handle contains about presence information.
*
* @since_tizen 3.0
*
* @pre The callback must be registered using iotcon_add_presence_cb()
*
* @see iotcon_add_presence_cb()
+ * @see iotcon_remove_presence_cb()
+ * @see iotcon_presence_response_get_connectivity_type()
+ * @see iotcon_presence_response_get_host_address()
+ * @see iotcon_presence_response_get_resource_type()
+ * @see iotcon_presence_response_get_result()
+ * @see iotcon_presence_response_get_trigger()
*/
typedef void (*iotcon_presence_cb)(iotcon_presence_h presence, iotcon_error_e err,
iotcon_presence_response_h response, void *user_data);
/**
* @brief Adds callback to a server to receive presence events.
* @details Request to receive presence to an interested server's resource with @a resource_type.\n
- * If succeed to subscribe, iotcon_presence_cb() will be invoked when the server sends presence\n
+ * If succeed to subscribe, iotcon_presence_cb() will be invoked when the server sends presence.\n
* A server sends presence events when adds/removes/alters a resource or start/stop presence.
*
* @since_tizen 3.0
* @brief Gets trigger from the presence response handle
*
* @details The @a trigger could be one of #iotcon_presence_trigger_e.
+ * It is set only if a response result is IOTCON_PRESENCE_OK.
* @since_tizen 3.0
*
* @param[in] response The handle of the presence response
- * @param[out] trigger The presence trigger value. It is set only if @a result is IOTCON_PRESENCE_OK.
+ * @param[out] trigger The presence trigger value.
*
* @return 0 on success, otherwise a negative error value.
* @retval #IOTCON_ERROR_NONE Successful
/**
- * @brief Specifies the type of function passed to iotcon_remote_resource_start_observing(),
+ * @brief Specifies the type of response function.
+ * @details The function passed to iotcon_remote_resource_start_observing(),
* iotcon_remote_resource_get(), iotcon_remote_resource_put(), iotcon_remote_resource_post(),
* iotcon_remote_resource_delete().
- * @details The @a err could be one of #iotcon_error_e.
+ * The @a err could be one of #iotcon_error_e.
* The @a request_type could be one of #iotcon_request_type_e.
*
* @since_tizen 3.0
void iotcon_disconnect(void);
/**
- * @brief Gets the timeout seconds of iotcon_get_device_info(),
+ * @brief Gets the timeout seconds of asynchronous API.
+ * @details This API get the timeout of iotcon_get_device_info(),
* iotcon_get_platform_info(), iotcon_get_tizen_info(), iotcon_find_resource(),
* iotcon_remote_resource_get(), iotcon_remote_resource_put(),
* iotcon_remote_resource_post() and iotcon_remote_resource_delete().
int iotcon_get_timeout(int *timeout_seconds);
/**
- * @brief Sets the timeout seconds of iotcon_get_device_info(),
+ * @brief Sets the timeout seconds of asynchrous APIs.
+ * @details This API set the timeout of iotcon_get_device_info(),
* iotcon_get_platform_info(), iotcon_get_tizen_info(), iotcon_find_resource(),
* iotcon_remote_resource_get(), iotcon_remote_resource_put(),
- * iotcon_remote_resource_post() and iotcon_remote_resource_delete().
- * @details Default timeout interval is 10 seconds.
- * Maximum timeout interval is 60 seconds.
+ * iotcon_remote_resource_post() and iotcon_remote_resource_delete().\n
+ * Default timeout interval value is 30.
*
* @since_tizen 3.0
*
- * @param[in] timeout_seconds Seconds for timeout
+ * @param[in] timeout_seconds Seconds for timeout (must be in range from 1 to 60)
*
* @return 0 on success, otherwise a negative error value.
* @retval #IOTCON_ERROR_NONE Successful