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

◆ slm_util_htoa()

int slm_util_htoa ( const uint8_t *  hex,
uint16_t  hex_len,
char *  ascii,
uint16_t  ascii_len 
)

Encode hex array to hexdecimal string (ASCII text)

Parameters
[in]hexHex arrary to be encoded
[in]hex_lenLength of hex array
[out]asciiencoded hexdecimal string
[in]ascii_lenreserved buffer size
Returns
actual size of ascii string if the operation was successful. Otherwise, a (negative) error code is returned.