Hello again!
I have configured and initialised the Thread API from the Thread/Zigbee client publisher example, and receive no errors or warnings when attempting to send mqttsn_client_search_gateway. However the MQTT function simply stays busy for the remainder of the run, and I cannot figure out what is wrong. I have run the thread example normally on the board and it works fine. If I am able to call search_gateway, does that mean the thread and mqtt client are setup correctly? Below are some pictures of how I am currently calling the function. The goal of the code is to automatically search and connect to the broker that I have running on a raspberry pi, which I have verified works with the original example.
I have the initialisation done in main.c, while the thread_process is run in it's own FreeRTOS task, in thread_server.c.
I initiate and call the search gateway function in another FreeRTOS task called MainComTask.c and it simply never returns to it's callback function.
I've attempted moving logic around to try and contain everything within one task however I always get the same results. Here is the entire project below:Thread Example (FREERTOS + GATEWAY ISSUE).zip
The Segger file is in Thread Example\examples\thread\mqttsn_client_publisher\pca10056\blank\ses