This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3220SF-LAUNCHXL: The HTTP server is added to the MQTT client routine, my mobile phone connects to mysimplelink.net/portable.html and I find that the webpage cannot interact with CC3220SF?

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF

Tool/software: Code Composer Studio

The HTTP server was added to the MQTT client routine, and my mobile phone connected to mysimplelink.net/portable.html and found that the webpage could not interact with CC3220SF.

1. I click the button of mysimplelink.net/portable.html webpage to control the led light, cc3220sf luanchpad cannot interact with the button of mysimplelink.net/portable.html webpage to control the led light?

2. I commented out the thread of MQTT client and found that a separate Http server thread works normally and can communicate with CC3220SF normally?
3. I speculate that there is a problem with the communication between the SPI driver and the NWP, because MQTT and http server are both SPI and the network processor NWP exchange data, if this is the problem, how can I solve the problem?
4. If you add an HTTP Server thread to the MQTT client and find that there is a problem with the execution of the MQTT and HTTP threads, I can connect to the Http service webpage mysimplelink.net/portable.html, but CC3220SF cannot interact with the Http service webpage, and the MQTT thread Unable to connect to MQTT broker. My published data cannot be received by the MQTT agent.
  • Lease,

    Set a breakpoint in the HTTP callback, and make sure this is getting called when you push a button on the webpage. If this works, then look at how the message is getting interpreted and make sure it is setting the GPIO. Also be sure the GPIO is configured correctly.

    BR,

    Vince