DC_BLUETOOTH_DEVICE_GET_ADDRESS(3)
π DC_BLUETOOTH_DEVICE_GET_ADDRESS(3) π
okay so bestie, welcome to the Library Functions Manual page for libdivecomputer β this is the one about grabbing a bluetooth device's address, and it's lowkey important if you're doing transport stuff later. π«Ά
β¨ NAME β¨
dc_bluetooth_device_get_address β Get the address of a bluetooth device.
π LIBRARY π
library libdivecomputer
π SYNOPSIS π
#include <libdivecomputer/bluetooth.h>
dc_bluetooth_address_t
dc_bluetooth_device_get_address(dc_bluetooth_device_t *device);
π¦ DESCRIPTION π¦
So this function gets the bluetooth device address of the given bluetooth device. It's required when you're opening transport communication with dc_bluetooth_open(3). β¨
It also requires a valid device of type dc_bluetooth_device_t, which you can retrieve using dc_bluetooth_iterator_new(3). No valid device, no address β that's the vibe check. π
π RETURN VALUES π
It returns the bluetooth address of device as dc_bluetooth_address_t, which is a 64bit integer holding the bluetooth address. ππ₯
And if you want that address as a string? Easy β format it using dc_bluetooth_addr2str(3). π
π SEE ALSO π
dc_bluetooth_open(3)dc_bluetooth_iterator_new(3)dc_bluetooth_device_get_name(3)dc_bluetooth_addr2str(3)
π AUTHORS π
The library libdivecomputer was written by Jef Driesen, jef@libdivecomputer.org. π«Ά
This manpage is written by Vincent Hagen, vinnie@script4web.nl. π
okay that's the whole page, bestie π β signed off from the Debian source/version, dated June 5, 2023 πβ¨ no cap, that's the footer vibe π
π¦ where this page comes from
- nixos 26.05: libdivecomputer 0.9.0
- nixpkgs unstable: libdivecomputer 0.9.0
- Copyright (C) 2020 Vincent Hagen <vinnie@script4web.nl>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms