bool find_tlv_by_tag(const uint8_t *buffer, size_t buffer_len, uint8_t tag, uint8_t *out_value, uint8_t *out_value_len)
Search for a TLV entry by tag and validate its length.
bool update_tlv_tag(uint8_t *buffer, size_t buffer_size, uint8_t tag, const uint8_t *value, uint8_t length)
Update an existing TLV entry if found, or append a new one. Assumes unused buffer space is filled wit...