Closed ghost closed 3 years ago
cc @ARMmbed/mbed-os-ipcore
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-2158
We closed this issue because it has been inactive for quite some time and we believe it to be low priority. If you think that the priority should be higher, then please reopen with your justification for increasing the priority.
Description of defect
I'm using sample source code from this link. https://os.mbed.com/docs/mbed-os/v6.2/apis/secure-socket-apis.html
I change the sample to use DTLS and connect using psk to COAP server, send simple packet and receive ACK. I attached modified source code. 13_5_DTLS coap err only debug.zip When Server is online and psk password is correct code works fine. The problem is when time out set and server is not responding or psk is not mach to server I got MbedOS Error(Rtos Event flags Error) at the end. You can check 3 condition below.
Could you please guide me understand why I got MbedOS Error and how to get rid of it? I appreciate your time.
1.When Server is online, psk password is correct. I have no problem. (no MbedOS Error occurs )this is the log
I start to check error patterns and are they handling correctly. these are patterns that I checked.
After long debugging i remove this line(which is I need). then MbedOS Error gone. I don't know why.
sock.set_timeout(SOCKET_TIMEOUT);
Target(s) affected by this defect ?
nRF52840 DK
Toolchain(s) (name and version) displaying this defect ?
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
What version of Mbed-os are you using (tag or sha) ?
checked in both versions. result is same. (both tag version) Mbed OS version 6.0.0 release version Mbed OS version 6.2.0 release version
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.0
How is this defect reproduced ?
define host_name isn't online in main.cpp, change network connectivity in mbed_app.json compile and run the code.