mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Fixed the commented out coap_new_optlist() example in the coap_client example.
coap_new_optlist() requires 3 arguments but the example had 2 arguments.
This commit is contained in:
parent
a82e6e63d9
commit
6127da32e4
@ -436,7 +436,8 @@ static void coap_example_client(void *p)
|
||||
* coap_insert_optlist(&optlist,
|
||||
* coap_new_optlist(COAP_OPTION_CONTENT_FORMAT,
|
||||
* coap_encode_var_safe (buf, sizeof (buf),
|
||||
* COAP_MEDIATYPE_APPLICATION_JSON));
|
||||
* COAP_MEDIATYPE_APPLICATION_JSON),
|
||||
* buf));
|
||||
* Add in here the POST data of length length. E.G.
|
||||
* coap_add_data_large_request(session, request length, data, NULL, NULL);
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user