Functions in
btdevice.h
Functions for working with
Bluetooth
capable devices.
bt_device_init()
Initialize the Bluetooth device and allocate the required resources for the library.
bt_device_deinit()
Deallocate resources that were allocated to interact with the device.
bt_disc_cancel_inquiry()
Cancel Bluetooth scan of in-range devices.
bt_disc_retrieve_by_service()
Retrieve a list of Bluetooth-enabled devices based on a specified service.
bt_disc_retrieve_by_service_connected()
Retrieve a list of Bluetooth-enabled devices by connected service.
bt_disc_retrieve_by_service_gatt()
Retrieve a list of Bluetooth-enabled devices by GATT service.
bt_disc_retrieve_count()
Retrieve the number of Bluetooth-enabled devices within range.
bt_disc_retrieve_devices()
Retrieve a list of Bluetooth-enabled devices that are within range.
bt_disc_start_inquiry()
Start scanning for Bluetooth-enabled devices.
bt_disc_start_inquiry_async()
Start scanning for Bluetooth-enabled devices asynchronously.
bt_ldev_disable_invoke()
This disables the invoke feature for receiving Bluetooth events.
bt_ldev_enable_invoke()
This function enables the invoking of a service application when a registered Bluetooth event occurs.
bt_ldev_free_services()
Free the services array.
bt_ldev_get_address()
Retrieve the local device address.
bt_ldev_get_device_class()
Retrieve the class of device information for the local Bluetooth-enabled device.
bt_ldev_get_discoverable()
Get the local device's discoverability mode.
bt_ldev_get_feature_enabled()
Retrieve the enabled status of a feature or profile.
bt_ldev_get_friendly_name()
Retrieve the friendly name of the local Bluetooth-enabled device.
bt_ldev_get_oob_data()
Retrieve the out-of-band (OOB) pairing data of the local device.
bt_ldev_get_power()
Determine whether the Bluetooth radio is enabled.
bt_ldev_get_property()
Retrieve the value of a Bluetooth property from the local device.
bt_ldev_get_services()
Retrieve the list of local services.
bt_ldev_get_type()
Retrieve the local device type.
bt_ldev_invoke_decode_event()
This function is used to parse the Bluetooth event data received over the invoke interface when
"bb.action.bluetooth.EVENT"
occurs.
bt_ldev_set_discoverable()
Set the local Bluetooth-enabled device to discoverable mode.
bt_ldev_set_filters()
This function allows you to enable or disable
BT_EVT
event triggering from
bt_device_cb
.
bt_ldev_set_power()
Enable or disable the Bluetooth radio.
bt_ldev_set_power_async()
Enable or disable the Bluetooth radio asynchronously.
bt_rdev_clear_gatt_cache()
Clears the GATT service cache on a remote device.
bt_rdev_delete()
Delete a remote Bluetooth-enabled device.
bt_rdev_delete_async()
Delete a remote Bluetooth-enabled device asynchronously.
bt_rdev_free()
Release resources used by the remote device.
bt_rdev_free_array()
Deallocate the array that stores remote Bluetooth-enabled device information.
bt_rdev_free_services()
Free the services array.
bt_rdev_get_address()
Retrieve the address of the remote device.
bt_rdev_get_addr()
Deprecated.
bt_rdev_get_current_rssi()
Retrieve the current received signal strength indicator (RSSI) of the connected remote Bluetooth-enabled device.
bt_rdev_get_current_tx_power()
Retrieve the current transmit (TX) power indicator of the connected remote Bluetooth-enabled device.
bt_rdev_get_device()
Retrieve a structure representing a remote Bluetooth-enabled device.
bt_rdev_get_device_class()
Retrieve the class of device (CoD) information of the remote Bluetooth-enabled device.
bt_rdev_get_friendly_name()
Retrieve the remote device friendly name.
bt_rdev_get_le_conn_params()
Retrieve the low energy connection parameters.
bt_rdev_get_le_device()
Retrieve a structure representing a remote Bluetooth enabled low energy device.
bt_rdev_get_le_info()
Retrieve the low energy information.
bt_rdev_get_remote_name()
Retrieve the remote device name.
bt_rdev_get_rssi()
Retrieve the received signal strength indicator (RSSI) of the remote Bluetooth-enabled device.
bt_rdev_get_services()
Retrieve the list of remote device services.
bt_rdev_get_services_connected()
Retrieve the list of connected services for a remote device.
bt_rdev_get_services_gatt()
Retrieve the list of remote device GATT (Generic Attributes) services.
bt_rdev_get_services_gatt_connected()
The function retrieves the list of connected Generic Attributes (GATT) services.
bt_rdev_get_type()
Retrieve the remote device type.
bt_rdev_is_dual_mode()
Determine whether the remote device supports dual-mode connections.
bt_rdev_is_encrypted()
Determine whether the connection with the remote Bluetooth-enabled device is encrypted.
bt_rdev_is_known()
Retrieve the known state of the remote Bluetooth-enabled device.
bt_rdev_is_paired()
Retrieve the pairing state of the remote Bluetooth-enabled device.
bt_rdev_is_trusted()
Determine whether the remote device is trusted.
bt_rdev_pair()
Pair with a remote Bluetooth-enabled device.
bt_rdev_pair_async()
Pair with a remote Bluetooth-enabled device asynchronously.
bt_rdev_refresh_gatt_services()
Refresh the available GATT services on the remote device.
bt_rdev_refresh_gatt_services_async()
Refreshes the GATT services on the remote device asynchronously.
bt_rdev_refresh_services()
Refresh remote device services.
bt_rdev_refresh_services_async()
Initiates an asynchronous refresh of the remote device services.
bt_rdev_sdp_free()
Free the SDP service record list.
bt_rdev_sdp_search()
Initiates an SDP service record search.
bt_rdev_sdp_search_async()
Initiates an asynchronous SDP service record search.
bt_rdev_set_oob_data()
Set out-of-band (OOB) pairing data for a remote Bluetooth-enabled device.
bt_rdev_update_friendly_name()
Update the remote device friendly name.
Parent topic:
Bluetooth device management (btdevice.h)
Related concepts
Constants in btdevice.h
Data types in btdevice.h