How to configure Thread in the mqtt-sn-publisher project of zephyr sdk?

I want to configure Thread in project mqtt-sn-publisher( https://github.com/nrfconnect/sdk-zephyr/tree/main/samples/net/mqtt_sn_publisher ) and communicate with mqtt-sn-gateway through Thread network.

I followed the instruction(https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/configuring.html) to add some configurations in file prj.conf of mqtt-sn-publisher project.

# Have added these in prj.conf
CONFIG_NET_TCP=n
CONFIG_SHELL=y
CONFIG_NET_L2_OPENTHREAD=y
CONFIG_OPENTHREAD_SOURCES=y
CONFIG_OPENTHREAD_SHELL=y
CONFIG_SHELL_BACKEND_SERIAL_RX_RING_BUFFER_SIZE=2048

But it always exited after it joined Thread network. What is the problem? Did I do something wrong?

Parents Reply Children
Related