NimBLE specific helper functions for handling addresses. More...

Detailed Description

NimBLE specific helper functions for handling addresses.

Files

file  nimble_addr.h
 Interface for NimBLE specific address helper functions.
 

Macros

#define NIMBLE_ADDR_STRLEN   (28U)
 Length of an address string in byte, including \0 termination.
 

Functions

void nimble_addr_print (const ble_addr_t *addr)
 Print the given address on STDIO. More...
 
void nimble_addr_sprint (char *buf, const ble_addr_t *addr)
 Write the string representation of the given address into a buffer. More...
 

Function Documentation

◆ nimble_addr_print()

void nimble_addr_print ( const ble_addr_t *  addr)

Print the given address on STDIO.

Parameters
[in]addraddress to print

◆ 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]bufbuffer
[in]addraddre to convert