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

◆ parse_hex_str()

bool parse_hex_str ( char const *  in_str,
uint8_t  in_str_len,
uint8_t *  out_buff,
uint8_t  out_buff_size,
bool  reverse 
)

#include <include/zigbee/zigbee_app_utils.h>

Read array of uint8_t from hex string.

Parameters
in_strPointer to the input hex string.
in_str_lenLength, in characters, of the input string.
out_buffPointer to the output uint8_t array.
out_buff_sizeSize, in bytes, of the output uint8_t array.
reverseIf true then parse from end to start.
Return values
trueif the conversion succeed
falseif the conversion failed