AVSystem / Anjay

C implementation of the client-side OMA LwM2M protocol
Other
188 stars 68 forks source link

Question about anjay_get_server_last_registration_time function #73

Open igortomiatti opened 5 months ago

igortomiatti commented 5 months ago

Hello,

From what I understood in the API documentation, the anjay_get_server_last_registration_time function was to return the date that was registered on the server.

But every time an update occurs, this date is updated in the function: _anjay_server_on_updated_registration

This function should return the date the registration was made for the first time or for each update?

Best regards, Igor.

Kucmasz commented 4 months ago

Hi! As you have pointed it out, the documentation might be misleading, but this function's intention is indeed to return the last time that either Register or Register Update message was sent and got a positive response. Does you app need to know the time where precisely a Register message was actually sent? Regards, Tomasz