DC_BLUETOOTH_ADDR2STR(3) | Library Functions Manual | DC_BLUETOOTH_ADDR2STR(3) |
dc_bluetooth_addr2str
—
#include
<libdivecomputer/bluetooth.h>
const char*
dc_bluetooth_addr2str
(dc_bluetooth_address_t
address, char *str, size_t
size);
The bluetooth address is formatted as XX:XX:XX:XX:XX:XX, where
each XX is a hexadecimal number specifying an octet of the 48-bit address.
The minimum size for the buffer is DC_BLUETOOTH_SIZE
bytes.
The reverse can be done with dc_bluetooth_str2addr(3).
June 5, 2020 | NetBSD 10.0 |