Skip to content

Tasklet Posting causing mqtt start to lock up #29

@ajlennon

Description

@ajlennon

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)

mProcessTask.Post();

mProcessTask.Post();

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
  1. Git commit id

1bfec38

  1. IEEE 802.15.4 hardware platform

Nordic nRF52840 dongle / DK

  1. Build steps

As above

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions