Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 4 months ago.
mbed-client-linux-example gives error when DTLS handshake is delayed
I have noticed that when running 'mbed-client-linux-example' on my Ubuntu 14.04 machine to talk to the mbed Device Connector, if I delay the client 'Certificate' message in the DTLS handshake by a few seconds, the flight of messages that include 'Server Hello done' is retransmitted by the server. I think that is fine according to the DTLS spec. The handshake eventually completes, but after some time (usually within the next minute when /Test/0/D reaches 5), error messages show up in the output console:
Quote:
Registered
Incrementing Resource Value Resource Value /Test/0/D : 1 Sending update register
registration updated Incrementing Resource Value Resource Value /Test/0/D : 2 Incrementing Resource Value Resource Value /Test/0/D : 3 Sending update register
registration updated Incrementing Resource Value Resource Value /Test/0/D : 4 Incrementing Resource Value Resource Value /Test/0/D : 5
Error occured : M2MInterface::NetworkError
Error occured : M2MInterface::NetworkError Sending update register
Error occured : M2MInterface::NotAllowed Incrementing Resource Value Resource Value /Test/0/D : 6
Is this a bug in mbedTLS?