AVSystem / Anjay

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

anjay_ongoing_registration_exists() remains true when a bootstrapping is used. #56

Closed IsaacDynamo closed 2 years ago

IsaacDynamo commented 3 years ago

Expected anjay_ongoing_registration_exists() to return false when bootstrapping is done and client registered to the lwm2m server.

Testcase

Run the demo with a bootstrap server. After the client is connected to the lwm2m server, anjay_ongoing_registration_exists() returns true.

output/bin/demo -e test_anjay_ongoing_registration_exists -b -u coap://leshan.eclipseprojects.io:5783
(DEMO)>ongoing-registration-exists
ONGOING_REGISTRATION==true

When a lwm2m server is used directly without bootstrapping, anjay_ongoing_registration_exists() will return false as expected when the client is connected.

output/bin/demo -e test_anjay_ongoing_registration_exists -u coap://leshan.eclipseprojects.io:5683
(DEMO)>ongoing-registration-exists
ONGOING_REGISTRATION==false

Version

Anjay 2.13.0

Mierunski commented 3 years ago

Hi! Thank you for the issue, we added it to our tracking system and will work on the solution

kFYatek commented 2 years ago

Hi, This issue should be fixed in the 2.14.0 release that has just been pushed.