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/CC3200-LAUNCHXL: http posts send periodically

Part Number: CC3200-LAUNCHXL


Tool/software: Code Composer Studio

Hi everyone,

I hope you can guide me, because I am spending too much time on it and I am a bit lost.

I am developing a firmware based on the http_client_demo example. I am able to send http_post messages and they are received in a local server properly.

But I have a problem, I want to send http_post messages periodically and automatically but I can not. I have tried to configure a timer interrupt and inside the timer interrupt handler include the http_post procedure, but it does not work (the timer interrupt itself works fine, it halts when it have to. But when http_post procedure is inside the timer interrupt handler it does not work, a new http client connection never happens).

If I include the http_post procedure inside the main function (even multiple times continuously), it works fine. But when I introduce the same http_post procedure inside the timer interrupt handler, it does not work.

Do you have any idea of what is happening? Could you suggest me anything to solve this issue?

(The http_post procedure is the included in the http_client_demo example --> connect to AP --> connect to httpclient --> http post method...)

Thanks in advance for your time and support.

Regards. 

  • Hi,

    SimpleLink API calls are not designed to be used from interrupt context. You need to use sl_ API and all libraries which use this API only from main or from RTOS task.

    In your case is solution simple. Just set global flag (or blocking synchronisation object in case of RTOS) in timer ISR and unblock your main to send http post.

    Jan