Is it possibe to turn on SED on nrf5340 using nRF Connect SDK 1.7.1?
I have problem to turn on.
Here is my code to turn on.
struct openthread_context *context = openthread_get_default_context();
#if defined(CONFIG_OPENTHREAD_MTD_SED)
#if CONFIG_OPENTHREAD_MTD_SED == 1
openthread_api_mutex_lock(context);
mode = otThreadGetLinkMode(context->instance);
mode.mRxOnWhenIdle = false;
err = otThreadSetLinkMode(context->instance, mode);
if(err) LOG_WRN("Set mode err %d", err);
openthread_api_mutex_unlock(context);
#endif
#endif
And part of my .prj file
CONFIG_OPENTHREAD_MTD=y CONFIG_OPENTHREAD_NORDIC_LIBRARY_MTD=y CONFIG_OPENTHREAD_MTD_SED=y CONFIG_OPENTHREAD_POLL_PERIOD=5000
I got error 7 (OT_ERROR_INVALID_ARGS)
Application works. Only supply current is approx. 4mA because receiver is allways on.