From 63f13692690b18a4c012edcccb1390f7d91c80de Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 21 Apr 2021 13:45:43 +0200 Subject: [PATCH] tiny.c: Update request method to COAP_REQUEST_CODE_POST --- examples/tiny.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tiny.c b/examples/tiny.c index 9cfa9d56..057a2e44 100644 --- a/examples/tiny.c +++ b/examples/tiny.c @@ -56,7 +56,7 @@ make_pdu( unsigned int value ) { static unsigned char buf[20]; int len, ls; - if (!(pdu = coap_pdu_init(COAP_MESSAGE_NON, COAP_REQUEST_POST, id++, + if (!(pdu = coap_pdu_init(COAP_MESSAGE_NON, COAP_REQUEST_CODE_POST, id++, COAP_DEFAULT_MTU))) return NULL;