7 years, 6 months ago.

mbed assertation failed: 0 == ret in /NanostackInterface.cpp,

Hello,

I am following this tutorial about the mbed-os example with mbed client :

https://github.com/ARMmbed/mbed-os-example-client

Things like working on both border router and client sides,

However, it’s often to get this assert message after running the application a while:

mbed assertation failed: 0 == ret, file: ../mbed-os/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.cpp, line 213

And obviously the client stops to working after this message. It is annoying.......

Could you guys suggest a solution?

Thanks in advance

Haisheng

Ps: here is the debug message:

Starting mbed Client example...

Using Mesh

Connecting to Mesh..

Connected to Network successfully

IP address 2a01:e35:2f47:b380:xxxx:xxxx:xxxx:

SOCKET_MODE : UDP

Connecting to coaps:[2607:f0d0:2601:52::20]:5684

Registered object successfully!

led_execute_callback pattern=500:500:500:500:500:500:500

Resource: 3201/0/5850 executed

Payload:

led_execute_callback pattern=500:500:500:500:500:500:500

Resource: 3201/0/5850 executed

Payload:

led_execute_callback pattern=500:500:500:500:500:500:500

Resource: 3201/0/5850 executed

Payload:

led_execute_callback pattern=500:500:500:500:500:500:500

Resource: 3201/0/5850 executed

Payload:

led_execute_callback pattern=500:500:500:500:500:500:500

Resource: 3201/0/5850 executed

Payload:

mbed assertation failed: 0 == ret, file: ../mbed-os/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.cpp, line 213

Be the first to answer this question.