UA_ERROR_NOT_ENABLED = TIZEN_ERROR_USER_AWARENESS | 0x06, /**< Not enabled */
UA_ERROR_NOT_FOUND = TIZEN_ERROR_USER_AWARENESS | 0x10, /**< Not found */
UA_ERROR_ALREADY_REGISTERED = TIZEN_ERROR_USER_AWARENESS | 0x11, /**< Already registered */
- UA_ERROR_DB_FAILED = TIZEN_ERROR_USER_AWARENESS | 0x12, /**< DB operation faield */
+ UA_ERROR_DB_FAILED = TIZEN_ERROR_USER_AWARENESS | 0x12, /**< DB operation failed */
UA_ERROR_NOT_REGISTERED = TIZEN_ERROR_USER_AWARENESS | 0x13, /**< Not registered */
} ua_error_e;
* @since_tizen 6.5
*/
typedef enum {
- UA_DETECT_MODE_ALL_SENSOR = 0x01, /**< Detection mode all */
+ UA_DETECT_MODE_ALL_SENSORS = 0x01, /**< Detection mode all */
UA_DETECT_MODE_ANY_SENSOR, /**< Detection mode any */
UA_DETECT_MODE_INVALID /**< <Invalid detection mode */
} ua_detection_mode_e;
* @since_tizen 6.5
*/
typedef enum {
- UA_OS_TYPE_NOT_DEFINE = 0x00, /**< OS not defined */
+ UA_OS_TYPE_NOT_DEFINED = 0x00, /**< OS not defined */
UA_OS_TYPE_TIZEN, /**< Tizen */
UA_OS_TYPE_ANDROID, /**< Android */
UA_OS_TYPE_IOS, /**< iOS */
/**
* @ingroup CAPI_NETWORK_UA_MODULE
- * @brief Enumerations of User device mac address types.
+ * @brief Enumerations of User device MAC address types.
* @since_tizen 6.5
*/
typedef enum {
UA_MAC_TYPE_BLE = 0x02, /**< BLE MAC */
UA_MAC_TYPE_WIFI = 0x04, /**< Wi-Fi station mode MAC */
UA_MAC_TYPE_P2P = 0x08, /**< Wi-Fi P2P mode MAC */
- UA_MAC_TYPE_INVALID /**< <Invalid MAC type */
+ UA_MAC_TYPE_INVALID /**< Invalid MAC type */
} ua_mac_type_e;
/**
* @param[in] status The status of sensor detected.
* @param[in] user_data The user data passed in ua_monitor_set_sensor_status_cb().
*
- * @exception
- * @pre
- * @post
*/
typedef void (*ua_sensor_status_changed_cb)(
ua_monitor_h handle,
* @param[in] sensor Sensor type which is present in UA monitor.
* @param[in] user_data User data passed in ua_monitor_foreach_sensor().
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_foreach_sensor()
*/
typedef bool (*ua_monitor_foreach_sensor_cb)(
* is complete, it is set to NULL.
* @param[in] user_data The user data passed in ua_monitor_start_scan()
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_start_scan()
*/
typedef void (*ua_scan_completed_cb)(
* @param[in] sensor_handle The sensor handle for the detected sensor.
* @param[in] user_data The user data passed in ua_monitor_start_presence_detection()
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_start_presence_detection()
*/
typedef void (*ua_presence_detected_cb)(
* @param[in] sensor_handle The sensor handle for the detected sensor.
* @param[in] user_data The user data passed in ua_monitor_start_absence_detection()
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_start_absence_detection()
*/
typedef void (*ua_absence_detected_cb)(
* @param[in] device_handle The device handle.
* @param[in] user_data User data passed in ua_user_foreach_devices().
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_foreach_devices()
*/
typedef bool (*ua_registered_dev_cb)(
* @param[in] service_handle The service handle.
* @param[in] user_data User data passed in ua_foreach_services().
*
- * @exception
- * @pre
- * @post
- *
* @see ua_foreach_services()
*/
typedef bool (*ua_service_added_cb)(
* @param[in] user_handle The user handle.
* @param[in] user_data User data passed in ua_service_foreach_users().
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_foreach_users()
*/
typedef bool (*ua_service_added_user_cb)(
* @param[in] dev_handle The added device's handle
* @param[in] user_data The user data passed in ua_user_add_device()
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_add_device()
*/
typedef void (*ua_user_device_added_cb)(
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_ALREADY_DONE Already initialized
*
- * @exception
- * @pre
- * @post
- *
* @see ua_deinitialize()
*/
int ua_initialize(void);
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
* @retval #UA_ERROR_ALREADY_DONE Already initialized
*
- * @exception
- * @pre
- * @post
- *
* @see ua_initialize()
*/
int ua_deinitialize(void);
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_added_cb()
*/
int ua_foreach_services(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_get_name()
* @see ua_service_set_name()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_create()
*/
int ua_get_service_by_name(
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_destroy()
*/
int ua_monitor_create(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_create()
*/
int ua_monitor_destroy(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_remove_sensor()
* @see ua_monitor_foreach_sensor()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_add_sensor()
* @see ua_monitor_foreach_sensor()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_add_sensor()
* @see ua_monitor_remove_sensor()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
*/
int ua_monitor_is_sensor_available(
ua_sensor_e sensor,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
*/
int ua_monitor_set_sensor_status_cb(
ua_monitor_h handle,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_set_sensor_status_cb()
*/
int ua_monitor_unset_sensor_status_cb(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see UA_SCAN_TIME_MULTIPLIER
* @see ua_scan_completed_cb()
* @see ua_monitor_stop_scan()
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_start_scan()
*/
int ua_monitor_stop_scan(ua_monitor_h monitor);
* @param[in] handle The monitor handle
* @param[in] service_handle The service handle. If service is NULL then montior will start for default service.
* @param[in] mode User detection mode. \n
- * #UA_DETECT_MODE_ALL_SENSOR : Detection callback will be invoked only after a user is
+ * #UA_DETECT_MODE_ALL_SENSORS : Detection callback will be invoked only after a user is
* detected by all sensors added to monitor. \n
* #UA_DETECT_MODE_ANY_SENSOR : Detection callback will be invoked as soon as a user is
* detected by any one of the sensors. \n
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_presence_detected_cb()
* @see ua_monitor_stop_presence_detection()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_start_presence_detection()
*/
int ua_monitor_stop_presence_detection(
* @param[in] handle The monitor handle
* @param[in] service_handle The service handle. If service is NULL then montior will start for default service.
* @param[in] mode User detection mode. \n
- * #UA_DETECT_MODE_ALL_SENSOR : Detection callback will be invoked only after no user is
+ * #UA_DETECT_MODE_ALL_SENSORS : Detection callback will be invoked only after no user is
* detected by all sensors added to monitor. \n
* #UA_DETECT_MODE_ANY_SENSOR : Detection callback will be invoked as soon as no user is
* detected by any one of the sensors. \n
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_absence_detected_cb()
* @see ua_monitor_stop_absence_detection()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_monitor_start_absence_detection()
*/
int ua_monitor_stop_absence_detection(
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_destroy()
*/
int ua_user_create(const char *account,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_create()
*/
int ua_user_destroy(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_remove()
*/
int ua_user_add(ua_user_h user_handle);
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_add()
*/
int ua_user_remove(ua_user_h user_handle);
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_create()
*/
int ua_user_get_account(ua_user_h user_handle, char **account);
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_remove_device()
* @see ua_user_device_added_cb()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_user_add_device()
*/
int ua_user_remove_device(
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_registered_dev_cb()
*/
int ua_user_foreach_devices(
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_destroy()
*/
int ua_service_create(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_create()
*/
int ua_service_destroy(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_remove()
*/
int ua_service_add(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_create()
* @see ua_service_remove()
*/
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_add()
*/
int ua_service_remove(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_set_name()
*/
int ua_service_get_name(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_service_set_detection_threshold(
ua_service_h service_handle,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_set_detection_threshold()
*/
int ua_service_get_detection_threshold(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_service_get_user_by_account(ua_service_h service_handle,
const char* account, ua_user_h *user_handle);
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_remove_user()
*/
int ua_service_add_user(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_add_user()
*/
int ua_service_remove_user(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_add_user()
* @see ua_service_remove_user()
*/
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_add_device()
* @see ua_service_remove_device()
*/
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_service_added_user_cb()
*/
int ua_service_foreach_users(
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_destroy()
*/
int ua_device_create(ua_mac_type_e mac_type,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_create()
*/
int ua_device_destroy(
* @retval #UA_ERROR_NONE Successful
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_set_mac_type()
*/
int ua_device_get_mac_type(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_get_os_info()
*/
int ua_device_set_os_info(
* @retval #UA_ERROR_NONE Successful
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_set_os_info()
*/
int ua_device_get_os_info(
* @retval #UA_ERROR_NONE Successful
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_set_mac_address()
*/
int ua_device_get_mac_address(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_get_wifi_bssid()
*/
int ua_device_set_wifi_bssid(
* @retval #UA_ERROR_NONE Successful
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_set_wifi_bssid()
*/
int ua_device_get_wifi_bssid(
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_get_wifi_ipv4_address()
*/
int ua_device_set_wifi_ipv4_address(
* @retval #UA_ERROR_NONE Successful
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_set_wifi_ipv4_address()
*/
int ua_device_get_wifi_ipv4_address(
* @retval #UA_ERROR_NONE Successful
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_device_get_last_presence(
ua_device_h device_handle,
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_create()
*/
int ua_device_get_pairing_required(
* @retval #UA_ERROR_OPERATION_FAILED Operation failed
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
* @see ua_device_set_os_info()
* @see ua_device_set_wifi_ipv4_address()
*/
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_device_get_by_mac_address(
const char *mac,
* @retval #UA_ERROR_OUT_OF_MEMORY Out of memory
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_device_get_by_device_id(
const char *device_id,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_sensor_get_status(
ua_sensor_h sensor_handle,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_sensor_get_timestamp(
ua_sensor_h sensor_handle,
* @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
*
- * @exception
- * @pre
- * @post
- *
*/
int ua_sensor_get_type(
ua_sensor_h sensor_handle,
}
switch (monitor->presence_mode) {
- case UA_DETECT_MODE_ALL_SENSOR:
+ case UA_DETECT_MODE_ALL_SENSORS:
/*
* Sends presence if it is detected by all sensors irrespective of device/user i.e if
* presence will be detected by device 1 for sensor 1 and by device 2 for sensor 2 then
* send presence detection callback to application. This will make sure that each sensor is
* detected at least one device from registered devices list.
*/
- UA_INFO("UA_DETECT_MODE_ALL_SENSOR [%d][%d]",
+ UA_INFO("UA_DETECT_MODE_ALL_SENSORS [%d][%d]",
bitmask, monitor->presence_detected_bitmask);
if (((bitmask == UA_SENSOR_BLE)
else
monitor->presence_detected_bitmask |= bitmask;
- UA_INFO("UA_DETECT_MODE_ALL_SENSOR [%d][%d]",
+ UA_INFO("UA_DETECT_MODE_ALL_SENSORS [%d][%d]",
bitmask, monitor->presence_detected_bitmask);
break;
UA_INFO("monitor->sensor_bitmask: 0x%8.8X, monitor->absence_detected_bitmask: 0x%8.8X",
monitor->sensor_bitmask, monitor->absence_detected_bitmask);
- if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSOR) {
+ if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSORS) {
if (monitor->sensor_bitmask & UA_SENSOR_BLE) {
if (__ua_check_all_users_absence_state(monitor->user_state, UA_SENSOR_BLE))
monitor->absence_detected_bitmask |= UA_SENSOR_BLE;
service_handle = service->service_handle;
switch (monitor->absence_mode) {
- case UA_DETECT_MODE_ALL_SENSOR:
+ case UA_DETECT_MODE_ALL_SENSORS:
break;
case UA_DETECT_MODE_ANY_SENSOR:
/* First add user info to local users list and then invoke callback */
UA_WARN("_uam_get_available_sensors failed");
ret = __ua_start_monitoring(monitor->sensor_bitmask, monitor->service, detect);
- if (mode == UA_DETECT_MODE_ALL_SENSOR)
+ if (mode == UA_DETECT_MODE_ALL_SENSORS)
__ua_monitor_internal_presence_ref(monitor);
if (monitor->internal_presence_started)
if (!monitor->presence_detection_started)
__ua_stop_monitoring(monitor->sensor_bitmask, monitor->service, UA_PRESENCE_DETECTION);
- if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSOR)
+ if (monitor->absence_mode == UA_DETECT_MODE_ALL_SENSORS)
__ua_monitor_internal_presence_unref(monitor);
monitor->absence_mode = UA_DETECT_MODE_INVALID;