net: lwm2m: refactor lwm2m_engine_context into lwm2m_message
The relationship between lwm2m_engine_context and lwm2m_message has always been a tenuous one. Let's merge the 2 structures into lwm2m_message and remove all of the extra stack variables. This change increases SRAM usage slightly due to the addition of the context structures to the multiple lwm2m_messages. However, the way lwm2m_engine_context was being used off the stack was probably creating hard to debug issues in the longterm. Also, having all of the structures in 1 place makes sharing them much easier later. Signed-off-by: Michael Scott <mike@foundries.io>
This commit is contained in:
parent
86728d849b
commit
44e9b5ed44
9 changed files with 330 additions and 392 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue