This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool searchTLV(uint8_t* inbuf, uint16_t tag_to_find, uint8_t** foundbuf, uint8_t* foundlen) | |
{ | |
// Tag, Length, Value buffer parser/lookup | |
// TAG & 0x20 = 0 - primitive (pure data in V) | |
// TAG & 0x20 = 1 - constructer (another TLVs in V) | |
// template code is first byte in buf | |
bool constructed; | |
bool multibytetag; | |
uint16_t tag = *inbuf; |