Describe the bug A clear and concise description of what the bug is.
I'm using nRF Connect SDK and have replaced the openthread module with main of this mqtt-sn enabled openthread repo.
I've set OT_MQTT=1 to build in the mqtt commands to the nRF Connect SDK CLI example and they appear fine.
When I execute ot mqtt start the call never returns.
I've debugged through and it looks like mProcessTask.Post() in mttsn_client.cpp::Process() is - I think - causing it to loop continuously and thus lock up
With these two lines commented out it returns (although I assume no mqtt-sn processing will be occuring)
I assume I am doing something slightly different somehow and this is causing a problem. I can't quite see where the OpenThread tasklet would yield and am not sure why whatever I am doing with my build seems to be causing this problem...
Any help would be appreciated!
To Reproduce Information to reproduce the behavior, including:
- Install Nordic nRF Connect SDK
- Create the CLI example
- Replace your OpenThread module with master from this repo
- Build, flash to an nRF52840-DK
- Run
ot mqtt start via the OpenThread shell
- It won't return
- Git commit id
1bfec38
- IEEE 802.15.4 hardware platform
Nordic nRF52840 dongle / DK
- Build steps
As above
- Network topology
Don't get that far
Expected behavior A clear and concise description of what you expected to happen.
ot mqtt start should return or error
Console/log output If applicable, add console/log output to help explain your problem.
Additional context Add any other context about the problem here.
Describe the bug A clear and concise description of what the bug is.
I'm using nRF Connect SDK and have replaced the openthread module with main of this mqtt-sn enabled openthread repo.
I've set OT_MQTT=1 to build in the mqtt commands to the nRF Connect SDK CLI example and they appear fine.
When I execute
ot mqtt startthe call never returns.I've debugged through and it looks like
mProcessTask.Post()in mttsn_client.cpp::Process() is - I think - causing it to loop continuously and thus lock upWith these two lines commented out it returns (although I assume no mqtt-sn processing will be occuring)
openthread/src/core/mqttsn/mqttsn_client.cpp
Line 1167 in 1bfec38
openthread/src/core/mqttsn/mqttsn_client.cpp
Line 1209 in 1bfec38
I assume I am doing something slightly different somehow and this is causing a problem. I can't quite see where the OpenThread tasklet would yield and am not sure why whatever I am doing with my build seems to be causing this problem...
Any help would be appreciated!
To Reproduce Information to reproduce the behavior, including:
ot mqtt startvia the OpenThread shell1bfec38
Nordic nRF52840 dongle / DK
As above
Don't get that far
Expected behavior A clear and concise description of what you expected to happen.
ot mqtt startshould return or errorConsole/log output If applicable, add console/log output to help explain your problem.
Additional context Add any other context about the problem here.