NimBLE specific helper functions for handling addresses.
More...
NimBLE specific helper functions for handling addresses.
|
| file | nimble_addr.h |
| | Interface for NimBLE specific address helper functions.
|
| |
|
| #define | NIMBLE_ADDR_STRLEN (28U) |
| | Length of an address string in byte, including \0 termination.
|
| |
|
| void | nimble_addr_print (const ble_addr_t *addr) |
| | Print the given address on STDIO.
|
| |
| void | nimble_addr_sprint (char *buf, const ble_addr_t *addr) |
| | Write the string representation of the given address into a buffer.
|
| |
◆ NIMBLE_ADDR_STRLEN
| #define NIMBLE_ADDR_STRLEN (28U) |
Length of an address string in byte, including \0 termination.
Definition at line 32 of file nimble_addr.h.
◆ nimble_addr_print()
| void nimble_addr_print |
( |
const ble_addr_t * | addr | ) |
|
Print the given address on STDIO.
- Parameters
-
◆ nimble_addr_sprint()
| void nimble_addr_sprint |
( |
char * | buf, |
|
|
const ble_addr_t * | addr ) |
Write the string representation of the given address into a buffer.
The resulting string written to buf is \0 terminated and is always 28 bytes (NIMBLE_ADDR_STRLEN) long.
- Parameters
-
| [out] | buf | buffer |
| [in] | addr | addre to convert |