Local device name and identity address.
More...
Local device name and identity address.
◆ bt_local_id_configure_driver()
| void bt_local_id_configure_driver |
( |
void |
| ) |
|
Configure the local name and cache the identity address, right after the stack starts.
Uses the stored device name, or "Pebble XXXX" from the last two address bytes.
◆ bt_local_id_copy_address()
| void bt_local_id_copy_address |
( |
struct pbl_bt_addr * |
addr_out | ) |
|
Copy the local identity address.
- Parameters
-
◆ bt_local_id_copy_address_hex_string()
| void bt_local_id_copy_address_hex_string |
( |
char |
addr_hex_str_out[PBL_BT_BD_ADDR_FMT_BUFFER_SIZE] | ) |
|
Format the local address as a hex string ("0x000000000000").
Writes "Unknown" if the address is not known.
- Parameters
-
| [out] | addr_hex_str_out | Destination buffer. |
◆ bt_local_id_copy_address_mac_string()
| void bt_local_id_copy_address_mac_string |
( |
char |
addr_mac_str_out[PBL_BT_ADDR_FMT_BUFFER_SIZE] | ) |
|
Format the local address as a MAC string ("00:00:00:00:00:00").
- Parameters
-
| [out] | addr_mac_str_out | Destination buffer. |
◆ bt_local_id_copy_device_name()
| void bt_local_id_copy_device_name |
( |
char |
name_out[PBL_BT_DEVICE_NAME_BUFFER_SIZE], |
|
|
bool |
is_le |
|
) |
| |
Copy the device name.
- Parameters
-
| [out] | name_out | Destination buffer. |
| is_le | Meant to select the LE name on dual mode devices; currently ignored. |
◆ bt_local_id_generate_address_from_serial()
| void bt_local_id_generate_address_from_serial |
( |
struct pbl_bt_addr * |
addr_out | ) |
|
Derive a static random address from the watch serial number.
- Parameters
-
| [out] | addr_out | Generated address. |
◆ bt_local_id_set_device_name()
| void bt_local_id_set_device_name |
( |
const char * |
device_name | ) |
|
Override the device name.
Truncated to PBL_BT_DEVICE_NAME_BUFFER_SIZE - 1 characters. Not persisted.
- Parameters
-