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

◆ parse_address()

addr_type_t parse_address ( const char *  input,
zb_addr_u *  output,
addr_type_t  addr_type 
)

#include <include/zigbee/zigbee_app_utils.h>

Function for parsing a null-terminated string of hex characters into 64-bit or 16-bit address.

The function will skip 0x suffix from input if present.

Parameters
inputPointer to the input string string representing the address in big endian.
outputPointer to the resulting zb_addr_u variable.
addr_typeExpected address type.
Returns
Conversion result.