Function util::hexToBytes¶
Defined in File Hex.cpp
Function Documentation¶
-
esp_err_t
util
::
hexToBytes
(const char *src, std::uint8_t *target)¶ Converts an hexadecimal string to a byte array.
This function assumes src to be a zero terminated sanitized string with an even number of [0-9a-f] characters, and target to be sufficiently large.
- Return
ESP_OK: succeed
ESP_FAIL: an invalid character was found
- Parameters
src
: null terminated hexadecimal source string[out] target
: byte array