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:
Michael Scott 2019-01-24 14:40:23 -08:00 committed by Jukka Rissanen
commit 44e9b5ed44
9 changed files with 330 additions and 392 deletions

File diff suppressed because it is too large Load diff