Page 1 of 1

COAP "POST" Example code

Posted: Tue Apr 20, 2021 11:48 am
by Harshad P
Hello All,

There's an example for CoAP-Clienthttps://github.com/espressif/esp-idf/tr ... oap_client in ESP-IDF which is used to GET data. Now I was trying to do a project to POST data to server, However I couldn't proceed since there's no POST functions I could find in it's libraries too.

If there's an example with POST data or someone has developed some simple application code for POST data please do help.

Regards,

Re: COAP "POST" Example code

Posted: Sun Apr 25, 2021 2:28 am
by ESP_YJM
You can change code from COAP_REQUEST_GET to COAP_REQUEST_POST. https://github.com/espressif/esp-idf/bl ... ain.c#L134