I have created a TCP client based on TCP echo example for TN4C1294NCPDT, it creates a task "tcphandler" to send data to the server. While the client makes a connection to the TCP server, my code creates a MQTT packet and send it to the TCP server which is in my code is a MQTT server. Now with this setup explained,I'm able to publish some data on MQTT, but this task executes only once. I want to run this task repeatedly so it can publish the data continuously. I tried by constructing a semaphore for it but it didn't work...I might have posted the semaphore to a wrong place. How do I keep this task running forever or create the task repeatedly?
Thank You