summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh.sandeep <h.sandeep@samsung.com>2017-03-08 17:22:06 +0530
committerh.sandeep <h.sandeep@samsung.com>2017-03-09 12:09:48 +0530
commitf6e05923b283a4cc437fcfc8854600146d2ebb3f (patch)
treed68fa2b2ccba014c6ac0ab439a8caaf5130698fc
parentaf8c69014bf77427733fc7549303dbc0fb22f383 (diff)
downloadbluetooth-f6e05923b283a4cc437fcfc8854600146d2ebb3f.tar.gz
bluetooth-f6e05923b283a4cc437fcfc8854600146d2ebb3f.tar.bz2
bluetooth-f6e05923b283a4cc437fcfc8854600146d2ebb3f.zip
PXP: Update the API description/documentation
Change-Id: I2cf840e599aae4a448e22829692551f8f10fed37 Signed-off-by: h.sandeep <h.sandeep@samsung.com>
-rw-r--r--include/bluetooth_internal.h215
-rw-r--r--include/bluetooth_type_internal.h53
-rw-r--r--src/bluetooth-proximity.c30
3 files changed, 249 insertions, 49 deletions
diff --git a/include/bluetooth_internal.h b/include/bluetooth_internal.h
index 1be5da5..d3567d6 100644
--- a/include/bluetooth_internal.h
+++ b/include/bluetooth_internal.h
@@ -3813,122 +3813,295 @@ int bt_hid_device_send_custom_event(const char *remote_address,
unsigned char report_id, const char *data, unsigned int data_len);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Creates the Proximity Profile Reporter Role.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] None
+ * @param[out] reporter proximity reporter server handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_ALREADY_DONE Already Enabled
+ * @retval #BT_ERROR_OUT_OF_MEMORY out Of Memory
*/
int bt_proximity_reporter_create(bt_proximity_reporter_h *reporter);
/**
- * @internal
- * @brief Destroys the Proximity Profile Monitor Role.
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
+ * @brief Destroys the Proximity Profile Reporter Role.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] reporter proximity reporter server handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
*/
int bt_proximity_reporter_destroy(bt_proximity_reporter_h reporter);
/**
- * @internal
- * @brief Creates the Proximity Profile Reporter Role.
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
+ * @brief Creates the Proximity Profile Monitor Role.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] remote address
+ * @param[out] monitor proximity monitor handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_ALREADY_DONE Already Enabled
+ * @retval #BT_ERROR_OUT_OF_MEMORY out Of Memory
*/
int bt_proximity_monitor_create(const char *remote_address, bt_proximity_monitor_h *monitor);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Creates the Proximity Profile Monitor Role.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] monitor proximity monitor handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
*/
int bt_proximity_monitor_destroy(bt_proximity_monitor_h monitor);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Proximity Monitor initiates the connection to remote reporter device.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] monitor proximity monitor handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
*/
int bt_proximity_monitor_connect(bt_proximity_monitor_h monitor);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Proximity Monitor disconnects with the remote reporter device.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] proximity monitor handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
*/
int bt_proximity_monitor_disconnect(bt_proximity_monitor_h monitor);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Sets proximity monitor connection state changed event change callback.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] proximity monitor handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
*/
int bt_proximity_monitor_set_connection_state_changed_cb(bt_proximity_monitor_h monitor,
bt_proximity_monitor_connection_state_changed_cb callback, void *user_data);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Unsets proximity monitor connection state changed event change callback.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] proximity monitor handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
*/
int bt_proximity_monitor_unset_connection_state_changed_cb(bt_proximity_monitor_h monitor);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Sets proximity reporter connection state changed event change callback.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] reporter proximity reporter handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
*/
int bt_proximity_reporter_set_connection_state_changed_cb(bt_proximity_reporter_h reporter,
bt_proximity_reporter_connection_state_changed_cb callback, void *user_data);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Unsets proximity reporter connection state changed event change callback.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] proximity reporter handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
*/
int bt_proximity_reporter_unset_connection_state_changed_cb(bt_proximity_reporter_h reporter);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Sets proximity reporter properties change callback.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] reporter proximity reporter handle
+ * @param[in] callback The callback function to register
+ * @param[in] user_data The user data to be passed to the callback function
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
*/
int bt_proximity_reporter_set_property_changed_cb(bt_proximity_reporter_h reporter,
bt_proximity_reporter_property_changed_cb callback, void *user_data);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Unsets proximity reporter properties change callback.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] reporter proximity reporter handle
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
*/
int bt_proximity_reporter_unset_property_changed_cb(bt_proximity_reporter_h reporter);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Set the Proximity Profile monitor linkloss alert value.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] monitor proximity monitor handle
+ * @param[in] value The value to be set for link loss alert
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
*/
int bt_proximity_monitor_set_linkloss_alert(bt_proximity_monitor_h monitor, int value);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Set the Proximity Profile monitor immediate alert value.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] monitor proximity monitor handle
+ * @param[in] value The value to be set for immediate alert
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
*/
int bt_proximity_monitor_set_immediate_alert(bt_proximity_monitor_h monitor, int value);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Read the Proximity Profile monitor linkloss alert value.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] monitor proximity monitor handle
+ * @param[out] value value read for the linkloss alert.
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
*/
int bt_proximity_monitor_get_linkloss_alert(bt_proximity_monitor_h monitor, int *value);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Read the Proximity Profile monitor immediate alert value.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] monitor proximity monitor handle
+ * @param[out] value value read for the immedaite alert.
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
*/
int bt_proximity_monitor_get_immediate_alert(bt_proximity_monitor_h monitor, int *value);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Read the Proximity Profile monitor Signal level value.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] monitor proximity monitor handle
+ * @param[out] value value read for the signal level.
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Device not Connected
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
*/
int bt_proximity_monitor_get_signal_level(bt_proximity_monitor_h monitor, int *value);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Read the Proximity Profile reporter linkloss alert value.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] remote_address remote device reporter address
+ * @param[out] value value read for the linkloss alert.
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED not initialized
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
*/
int bt_proximity_reporter_get_linkloss_alert(const char *remote_address, int *value);
/**
- * @internal
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Read the Proximity Profile reporter immediate alert value.
+ * @since_tizen 4.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/bluetooth
+ * @param[in] remote_address remote device reporter address
+ * @param[out] value value read for the immediate alert.
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED not initialized
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
*/
int bt_proximity_reporter_get_immediate_alert(const char *remote_address, int *value);
+
/**
* @internal
* @brief API to set scan filter for iBeacons reports
diff --git a/include/bluetooth_type_internal.h b/include/bluetooth_type_internal.h
index a8744d0..da53b9e 100644
--- a/include/bluetooth_type_internal.h
+++ b/include/bluetooth_type_internal.h
@@ -694,43 +694,70 @@ typedef void (*bt_ipsp_connection_state_changed_cb)
(int result, bool connected, const char *remote_address, const char *iface_name, void *user_data);
/**
- * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_LE_MODULE
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief The handle of a Proximity Monitor client handle which is associated with a remote device.
- * @since_tizen 3.0
+ * @since_tizen 4.0
*/
typedef void *bt_proximity_monitor_h;
/**
- * @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief The handle of a Proximity Reporter server.
- * @since_tizen 3.0
+ * @since_tizen 4.0
*/
typedef void *bt_proximity_reporter_h;
/**
- * @internal
- * @since_tizen 3.0
- * @brief Proximity profile reporter property changed callback
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
+ * @brief Called when the Proximity profile reporter property is changed.
+ * @since_tizen 4.0
+ *
+ * @param[in] result callback result
+ * @param[in] remote_address remote device address on which property is changed
+ * @param[in] service_type The property type for which the value is changed
+ * @param[in] prop_value The property value changed
+ * @param[in] user_data The user data passed from the callback registration function
+ * @see bt_proximity_reporter_set_property_changed_cb()
+ * @see bt_proximity_reporter_unset_property_changed_cb()
*/
typedef void (*bt_proximity_reporter_property_changed_cb)
(int result, const char *remote_address, int service_type, int prop_value, void *user_data);
/**
- * @internal
- * @since_tizen 3.0
- * @brief Proximity monitor profile connection state changed callback
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
+ * @brief Called when the Proximity monitor profile connection state is changed.
+ * @since_tizen 4.0
+ *
+ * @param[in] result callback result
+ * @param[in] remote_address remote device address to which the device is connected
+ * @param[in] monitor proximity profile monitor handle
+ * @param[in] connected The connection status: (@c true = connected, @c false = disconnected)
+ * @param[in] supported_service supported services of proximity profile
+ * @param[in] user_data The user data passed from the callback registration function
+ * @see bt_proximity_monitor_set_connection_state_changed_cb()
+ * @see bt_proximity_monitor_unset_connection_state_changed_cb()
*/
typedef void (*bt_proximity_monitor_connection_state_changed_cb)
(int result, const char *remote_address, bt_proximity_monitor_h monitor, bool connected, int supported_service, void *user_data);
/**
- * @internal
- * @since_tizen 3.0
- * @brief Proximity reporter profile connection state changed callback
+ * @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
+ * @brief Called when the Proximity reporter profile connection state is changed.
+ * @since_tizen 4.0
+ *
+ * @param[in] result callback result
+ * @param[in] remote_address remote device address to which the device is connected
+ * @param[in] reporter proximity profile reporter handle
+ * @param[in] connected The connection status: (@c true = connected, @c false = disconnected)
+ * @param[in] supported_service supported services of proximity profile
+ * @param[in] user_data The user data passed from the callback registration function
+ * @see bt_proximity_reporter_set_connection_state_changed_cb()
+ * @see bt_proximity_reporter_unset_connection_state_changed_cb()
*/
typedef void (*bt_proximity_reporter_connection_state_changed_cb)
(int result, const char *remote_address, bt_proximity_reporter_h reporter, bool connected, int supported_service, void *user_data);
+
/**
* @internal
* @brief Various TDS transport states.
diff --git a/src/bluetooth-proximity.c b/src/bluetooth-proximity.c
index 8e88796..98e99af 100644
--- a/src/bluetooth-proximity.c
+++ b/src/bluetooth-proximity.c
@@ -153,7 +153,7 @@ int _bt_check_proximity_is_initialized(bool *is_initialized)
return BT_ERROR_NONE;
}
/* LCOV_EXCL_STOP */
-static bt_proximity_monitor_s *_bt_proximity_minotr_find(const char *remote_address)
+static bt_proximity_monitor_s *_bt_proximity_monitor_find(const char *remote_address)
{
GSList *l;
@@ -175,7 +175,7 @@ int _bt_proximity_connection_set_state_changed(int result, const char *remote_ad
if (pxp_monitor_initialized) {
bt_proximity_monitor_s *monitor_s = NULL;
- monitor_s = _bt_proximity_minotr_find(remote_address);
+ monitor_s = _bt_proximity_monitor_find(remote_address);
if (monitor_s) {
bluetooth_device_address_t addr_hex = { {0,} };
_bt_convert_address_to_hex(&addr_hex, remote_address);
@@ -272,7 +272,7 @@ int bt_proximity_monitor_destroy(bt_proximity_monitor_h monitor)
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_START */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (monitor_s->connection_callback) {
@@ -295,10 +295,10 @@ int bt_proximity_monitor_connect(bt_proximity_monitor_h monitor)
BT_CHECK_GATT_PXP_SUPPORT();
BT_CHECK_INIT_STATUS();
- BT_CHECK_INPUT_PARAMETER(monitor_s);
-/* LCOV_EXCL_START */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
- return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
+ BT_CHECK_INPUT_PARAMETER(monitor_s);/* LCOV_EXCL_START */
+
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
+ return BT_ERROR_NOT_INITIALIZED;
error_code = bt_gatt_connect(monitor_s->remote_address, FALSE);
@@ -317,7 +317,7 @@ int bt_proximity_monitor_disconnect(bt_proximity_monitor_h monitor)
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor_s);
/* LCOV_EXCL_START */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
error_code = bt_gatt_disconnect(monitor_s->remote_address);
@@ -338,7 +338,7 @@ int bt_proximity_monitor_set_connection_state_changed_cb(bt_proximity_monitor_h
BT_CHECK_INPUT_PARAMETER(monitor_s);
BT_CHECK_INPUT_PARAMETER(callback);
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
/* register the callback */
@@ -356,7 +356,7 @@ int bt_proximity_monitor_unset_connection_state_changed_cb(bt_proximity_monitor_
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor_s);
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
/* unregister the callback */
@@ -438,7 +438,7 @@ int bt_proximity_monitor_set_linkloss_alert(bt_proximity_monitor_h monitor, int
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
/* LCOV_EXCL_START */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (!(pxp_monitor_supported_services & BT_PROXIMITY_LINKLOSS_ALERT))
@@ -464,7 +464,7 @@ int bt_proximity_monitor_set_immediate_alert(bt_proximity_monitor_h monitor, int
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
/* LCOV_EXCL_START */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (!(pxp_monitor_supported_services & BT_PROXIMITY_IMMEDIATE_ALERT))
@@ -490,7 +490,7 @@ int bt_proximity_monitor_get_linkloss_alert(bt_proximity_monitor_h monitor, int
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (!(pxp_monitor_supported_services & BT_PROXIMITY_LINKLOSS_ALERT))
@@ -517,7 +517,7 @@ int bt_proximity_monitor_get_immediate_alert(bt_proximity_monitor_h monitor, int
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (!(pxp_monitor_supported_services & BT_PROXIMITY_IMMEDIATE_ALERT))
@@ -544,7 +544,7 @@ int bt_proximity_monitor_get_signal_level(bt_proximity_monitor_h monitor, int *v
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(monitor); /* LCOV_EXCL_LINE */
- if (_bt_proximity_minotr_find(monitor_s->remote_address) == NULL)
+ if (_bt_proximity_monitor_find(monitor_s->remote_address) == NULL)
return BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED;
if (!(pxp_monitor_supported_services & BT_PROXIMITY_TX_POWER))