Skip to content

Commit

Permalink
Fix issue #599, run server together with bootstrap (#600)
Browse files Browse the repository at this point in the history
LWM2M_SERVER_MODE and LWM2M_BOOTSTRAP_SERVER_MODE flags can be used
in the same server instance again.

Signed-off-by: Marc Lasch <marc.lasch@husqvarnagroup.com>
  • Loading branch information
mlasch committed Apr 29, 2021
1 parent 4a8aa2b commit 54d6c2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/liblwm2m.h
Original file line number Diff line number Diff line change
Expand Up @@ -780,13 +780,14 @@ struct _lwm2m_context_
lwm2m_object_t * objectList;
lwm2m_observed_t * observedList;
#endif
#ifdef LWM2M_SERVER_MODE
#if defined(LWM2M_SERVER_MODE) || defined(LWM2M_BOOTSTRAP_SERVER_MODE)
lwm2m_client_t * clientList;
#endif
#ifdef LWM2M_SERVER_MODE
lwm2m_result_callback_t monitorCallback;
void * monitorUserData;
#endif
#ifdef LWM2M_BOOTSTRAP_SERVER_MODE
lwm2m_client_t * clientList;
lwm2m_bootstrap_callback_t bootstrapCallback;
void * bootstrapUserData;
#endif
Expand Down

0 comments on commit 54d6c2b

Please sign in to comment.