<div dir="ltr">Dear all,<div><br></div><div>I'm trying to add a new field( type is uint32_t) to data packet so the producer can set this field while creating the packet. I modified tlv, tags, and fields header files to include a new tag for it. I also edited generic-link-service.cpp file</div><div><br></div><div>I declared the field in the producer.hpp file and in the producer.cpp file I added the field using .addAttribute(....), and tried to set it using data->setTag<fieldName>(std::make_shared<fieldName>(m_field));</div><div>but I got an errors while compiling the OnInterest method:</div><div>1-that this new field was not declared in this scope.</div><div>2- the value is not usable in a constant expression and was not declared constexp. </div><div>3- no matching function for call to make_shared(uint32_t)</div><div><br></div><div>Does the setTag is not applicable to be used here? Should I write specific set and get function in the data.cpp file? what other modifications shall I add to be able to set this field and use it?</div><div><br></div><div>Your help is really appreciated</div><div><br></div><div>Regards, <br></div><div>Samar</div><div><br></div><div><br></div><div><br></div></div>