Skip to content
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
2 changes: 1 addition & 1 deletion include/lte/lte_lwm2m.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ struct lwm2mstub_serverinfo_s
bool bootstrap;
bool nonip;
int security_mode;
unsigned short lifetime;
uint32_t lifetime;
char server_uri[LWM2MSTUB_MAX_SERVER_NAME];
char device_id[LWM2MSTUB_MAX_DEVID];
char security_key[LWM2MSTUB_MAX_SEQKEY];
Expand Down
2 changes: 1 addition & 1 deletion lte/alt1250/alt1250_atcmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ int lwm2mstub_send_bscreateobj1(FAR struct alt1250_s *dev,
FAR struct lwm2mstub_serverinfo_s *info)
{
snprintf((char *)dev->tx_buff, _TX_BUFF_SIZE,
"AT%%LWM2MBSCMD=\"CREATE\",1,0,0,0,1,%u,%s\r", info->lifetime,
"AT%%LWM2MBSCMD=\"CREATE\",1,0,0,0,1,%lu,%s\r", info->lifetime,
info->nonip ? ",7,\"N\",22,\"N\"" : "");

return send_internal_at_command(dev, container, usockid, proc, arg, ures);
Expand Down