Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lte/alt1250: Notice instance information #2266

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/lte/lte_lwm2m.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
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);

Expand Down
6 changes: 4 additions & 2 deletions lte/alt1250/callback_handlers/alt1250_evt.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,10 @@ static FAR void *g_lwm2movstopargs[] =

/* event argument for LTE_CMDID_LWM2M_SERVEROP_EVT */

static struct lwm2mstub_instance_s g_lwm2msrvop_inst;
static FAR void *g_lwm2moperationargs[] =
{
NULL
NULL, NULL, &g_lwm2msrvop_inst
};

/* event argument for LTE_CMDID_LWM2M_FWUP_EVT */
Expand Down Expand Up @@ -1445,7 +1446,8 @@ static uint64_t lwm2m_operation_evt_cb(FAR void *cb, FAR void **cbarg,

if (callback)
{
callback((int)cbarg[0]);
callback((int)cbarg[0], (int)cbarg[1],
(FAR struct lwm2mstub_instance_s *)cbarg[2]);
}

return 0ULL;
Expand Down
Loading