Hi All,
How can I post data in json format through HTTP Post ?
Regards,
Suraj
Hi Suraj,
Thanks for your inquiry. We implement how to PUT and POST in the http_client_sample example of FreeRTOS SDK v3.2.4.0.
Please find more details in UM-UI-055, chapter 4.5 HTTP Client : https://www.renesas.com/us/en/document/mas/um-wi-055-da16200-freertos-example-application-manual?language=en&r=1600096
There is also an AT-CMD for GET, POST or PUT methods. Please take a look at AT+NWHTC , in UM-WI-003 : https://www.renesas.com/us/en/document/mas/um-wi-003-da16200-da16600-command-user-manual?language=en&r=1600096
PM_Renesas
I'm experiencing issue with HTTP post request with JSON data
Attached a screenshot showing URL and JSON format data
Examples can be also found in chapter 9.2.1 HTTP-Client Connection Example.
For your reference :
POST method:
AT+NWHTC= <URL>,post,'{"name": "morpheus", "eventSector": "leader"}'
PUT method:
AT+NWHTC= <URL>,put,'{"name": "morpheus", "eventSector": "leader"}'