DC_BLUETOOTH_DEVICE_GET_ADDRESS(3) FreeBSD Library Functions Manual DC_BLUETOOTH_DEVICE_GET_ADDRESS(3)

dc_bluetooth_device_get_addressGet the address of a bluetooth device.

library “libdivecomputer”

#include <libdivecomputer/bluetooth.h>

dc_bluetooth_address_t
dc_bluetooth_device_get_address(dc_bluetooth_device_t *device);

Get the bluetooth device address of given bluetooth device. Required when opening transport communication with dc_bluetooth_open(3). Requires a valid device of type dc_bluetooth_device_t which can be retrieved using dc_bluetooth_iterator_new(3).

Returns the bluetooth address of device as dc_bluetooth_address_t which is a 64bit integer holding the bluetooth address.

The address can be formatted as a string by using dc_bluetooth_addr2str(3).

dc_bluetooth_open(3), dc_bluetooth_iterator_new(3), dc_bluetooth_device_get_name(3), dc_bluetooth_addr2str(3).

The library “libdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org.
This manpage is written by
Vincent Hagen, vinnie@script4web.nl.

June 5, 2020 FreeBSD 14.3-RELEASE