DC_BLUETOOTH_DEVICE_GET_ADDRESS(3)

πŸ“¦ version 0.9.0, in nixos 26.05, nixpkgs unstable

πŸ’– 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 πŸ‘€

πŸ‘‘ 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