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.

RTOS/CC3120: Running HTTP POST with MSP432p and TI-RTOS

Part Number: CC3120
Other Parts Discussed in Thread: CC3100,

Tool/software: TI-RTOS

Dear Sirs

I have been struggling with the CC31x0 for two weeks now.

I really hope someone can help me with an HTTP client that sends HTTP POSTs, on a MSP432p running TI-RTOS.

The http_client using MSP430 and CC3100 works perfectly.

Then I managed to get the same working on my MSP432p and CC3100 to work.

But when I was trying to convert the program above into an RTOS environment then I failed.

So I looked at the network_terminal example which uses MSP432p, CC3120 and TI-RTOS.

I use simplelink_sdk_wifi_plugin_1_55_00_42 and CCS7.4.0

In the main thread of network_terminal I figured out that an automated AP connection works with:

memcpy(&app_CB.CmdBuffer, "wlanconnect -s \"NETGEAR38\" -t WPA/WPA2 -p \"mightywater123\"\0", 59);

   RetVal = cmdWlanConnectCallback((void *)(app_CB.CmdBuffer + strlen("wlanconnect")));

   if(RetVal != 0)

   {

       UART_PRINT(" Failed to establish connection with an AP \n\r");

       return(NULL);

   }

Now I need code for :

-          Connect to HTTP server

-          Send a HTTP POST

The code I have in the nonOS systems works very different so they don’t help me.

Any ideas are highly welcome

/Dan

  • Hi Dan,

    The Provisioning example within that same SDK should provide some help:

    C:\ti\simplelink_sdk_wifi_plugin_1_55_00_42\examples\rtos\MSP_EXP432P401R\demos\provisioning

    There probably will still be a good amount of porting to handle. There's no explicit http example for CC3120.

    Hope this helps,
    Kevin