nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ ieee_addr_to_str()

int ieee_addr_to_str ( char *  str_buf,
uint16_t  buf_len,
const zb_ieee_addr_t  in 
)

#include <include/zigbee/zigbee_app_utils.h>

Function for converting 64-bit address to hex string.

Parameters
[out]str_bufPointer to output buffer.
[in]buf_lenLength of the buffer pointed by str_buf.
[in]inZigbee IEEE address to be converted to string.
Returns
snprintf-compatible value. Less than zero means encoding error. Non-negative value is the number of characters that would have been written if the supplied buffer had been large enough. Value greater than or equal to buf_len means that the supplied buffer was too small.
Note
Null terminator is written if buf_len is large enough, but does not count for the return value.