7 years, 3 months ago.

mbed-client-linux-example failed to register endpoint

when I try to execute the mbed client linux example code compiled by the instruction 'yotta build -d' , it will show the message ''Registering endpoint" and stop here for a very long time , and then it prints out "M2MConnectionSecurityPimpl::timer_expired - handshake timeout". (Error occured : M2MInterface::SecureConnectionFailed) what's wrong with this? Do I missing something ? About 3 months ago, the same code can successfully connect to mDS, but now it fails

thank you for any help

mbed-client-linux-example code : https://github.com/ARMmbed/mbed-client-linux-example

1 Answer

7 years, 3 months ago.

Hi joseph,

I just tried the same. It's working all fine on my side. From the error code you posted, I guess it's network related issue. I'd suggest you check below things and try again.

1, Check whether you changed your firewall setting. We must make sure the 5683/5684 ports able to access.

2, The default socket mode is "UDP". You could try to change the socket mode to "TCP" in the source code. (In some specific network, UDP connection was not stable and easy to met connection issue.)

Thanks.