lte/alt1250: Notice instance information

Notice instance information of LwM2M server operation to application.
This commit is contained in:
SPRESENSE 2023-06-15 05:57:15 +09:00 committed by Petro Karashchenko
parent c82aa9f683
commit a16fb23dd7
2 changed files with 6 additions and 3 deletions

View File

@ -250,7 +250,8 @@ typedef CODE void (*lwm2mstub_ovstart_cb_t)(int seq_no, int srv_id,
typedef CODE void (*lwm2mstub_ovstop_cb_t)(int seq_no, int srv_id, typedef CODE void (*lwm2mstub_ovstop_cb_t)(int seq_no, int srv_id,
FAR struct lwm2mstub_instance_s *inst, FAR char *token); FAR struct lwm2mstub_instance_s *inst, FAR char *token);
typedef CODE void (*lwm2mstub_operation_cb_t)(int event); typedef CODE void (*lwm2mstub_operation_cb_t)(int event, int srv_id,
FAR struct lwm2mstub_instance_s *inst);
typedef CODE void (*lwm2mstub_fwupstate_cb_t)(int event); typedef CODE void (*lwm2mstub_fwupstate_cb_t)(int event);

View File

@ -638,9 +638,10 @@ static FAR void *g_lwm2movstopargs[] =
/* event argument for LTE_CMDID_LWM2M_SERVEROP_EVT */ /* event argument for LTE_CMDID_LWM2M_SERVEROP_EVT */
static struct lwm2mstub_instance_s g_lwm2msrvop_inst;
static FAR void *g_lwm2moperationargs[] = static FAR void *g_lwm2moperationargs[] =
{ {
NULL NULL, NULL, &g_lwm2msrvop_inst
}; };
/* event argument for LTE_CMDID_LWM2M_FWUP_EVT */ /* event argument for LTE_CMDID_LWM2M_FWUP_EVT */
@ -1445,7 +1446,8 @@ static uint64_t lwm2m_operation_evt_cb(FAR void *cb, FAR void **cbarg,
if (callback) if (callback)
{ {
callback((int)cbarg[0]); callback((int)cbarg[0], (int)cbarg[1],
(FAR struct lwm2mstub_instance_s *)cbarg[2]);
} }
return 0ULL; return 0ULL;