I tried both PSK mode and RPK mode separately by modifying both leshan-standalone and LeshanClientExample accordingly with help of SecurityTest and SecureIntegrationTestHelper classes. In both cases, client shows similar messages like the following-
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 1, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 2, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 3, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 4, next_receive_seq: 6
Jun 11, 2015 2:45:21 PM org.eclipse.californium.scandium.dtls.Handshaker processMessageNext
INFO: Discarded message due to older message_seq: 5, next_receive_seq: 6
Device Registration (Success? FORBIDDEN)
Device Registration Error: FORBIDDEN
If you're having issues connecting to the LWM2M endpoint, try using the DTLS port instead.
and server console shows the following messages in RPK and PSK mode-
RPK Mode-
Jun 11, 2015 2:45:20 PM org.eclipse.californium.scandium.DTLSConnector receiveNext
PSK Mode-
Could anyone please tell why the client is not able to register with the server? I am using Scandium-1.0.0-M3 library.
Thanks in Advance.
--
Kailash Kumar
IT Engineer, CMC LTD
Hyderabad,India