1
0
mirror of https://github.com/obgm/libcoap.git synced 2025-10-14 02:19:34 +08:00

tiny.c: Update request method to COAP_REQUEST_CODE_POST

This commit is contained in:
Olaf Bergmann
2021-04-21 13:45:43 +02:00
parent cbd1ded66e
commit 63f1369269

View File

@@ -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;