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.

CC3200: How to do HTTP POST with JSON data to the HTTP server example code from a WebClient or POSTMAN app?

Part Number: CC3200

Hi, 

Does the HTTP serve example code in CC3200 SDK support receiving data in JSON format?

If YES, please help me by providing a working example of HTTP POST with JSON format to the CC3200 server example.

Thanks

Virenda

  • Hi Virenda,

    The CC3200 SDK contains the JSMN json parser. It is mainly used by http_client (see http_client example).
    On the server side, the CC3200 used the concept of tokens for getting (GET) or setting (PUT) dynamic content.
    It was not designed for that but a token value can contain a json string. In such case, the JSMN lib may be used for parsing it.

    Br,
    Kobi
  • Thanks Kobi, For prompt reply.

    So it means, The CC3200 server example wil only accept data of the "Content-Type:application/x-www-form-urlencoded" ?

    Is there a limit in the size of the Key value of an form , 

    Example : Key : __SL_P_ULD , Value : LED1_OFF

    However if I edit the key to only "__SL" , I do not receive the httpSeverCallback interrupts.

    Thanks 

    Virendra