![]() |
BALTECH Docs |
BALTECH SDK wrapper functions reference
|
| brp_errcode brp_get_update_blob_from_string | ( | const char * | hex_str, |
| size_t | hex_len, | ||
| brp_buf * | blob, | ||
| size_t * | blob_size, | ||
| brp_mempool * | mempool | ||
| ) |
Parse BEC2/BF3 hex string to binary blob.
The hex format has header lines followed by an empty line, then hex-encoded payload bytes. Header lines are skipped.
| hex_str | Pointer to the hex string content |
| hex_len | Length of hex_str in bytes |
| blob | Output: pointer to parsed binary blob (allocated in mempool) |
| blob_size | Output: size of the parsed blob |
| mempool | Memory pool for allocation. Caller frees via brp_mempool_free. |