Skip to content

Conversation

@ashishmac7
Copy link
Contributor

Updated interval type from time_t to int32_t in registration.c to correctly handle negative differences when currentTime exceeds targetP->registration. This fixes a bug where unsigned time_t caused large positive intervals, delaying registrations. The change ensures compliance with LwM2M registration timing requirements.

@ashishmac7 ashishmac7 force-pushed the fix/registration-interval-type branch from 19a4d15 to 2dcff10 Compare May 6, 2025 11:38
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 6, 2025

@ashishmac7 ashishmac7 force-pushed the fix/registration-interval-type branch from 2dcff10 to bfb6bd4 Compare August 27, 2025 13:29
@sonarqubecloud
Copy link

@ashishmac7 ashishmac7 force-pushed the fix/registration-interval-type branch from bfb6bd4 to 57412fd Compare November 7, 2025 18:24
Updated `interval` type from `time_t` to `int32_t` in registration.c
to correctly handle negative differences when currentTime exceeds
targetP->registration. This fixes a bug where unsigned `time_t`
caused large positive intervals, delaying registrations.
The change ensures compliance with LwM2M registration timing requirements.

Signed-off-by: ashishmac7 <[email protected]>
@ashishmac7 ashishmac7 force-pushed the fix/registration-interval-type branch from 57412fd to cc91e44 Compare November 7, 2025 18:28
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants