net/gcoap: adjust to nanocoap changes
This commit is contained in:
parent
4c08e77d00
commit
a3b8c90485
@ -564,8 +564,8 @@ static ssize_t _write_options(coap_pkt_t *pdu, uint8_t *buf, size_t len)
|
|||||||
DEBUG("gcoap: _write_options: path does not start with '/'\n");
|
DEBUG("gcoap: _write_options: path does not start with '/'\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
bufpos += coap_put_option_uri(bufpos, last_optnum, (char *)pdu->url,
|
bufpos += coap_opt_put_uri_path(bufpos, last_optnum,
|
||||||
COAP_OPT_URI_PATH);
|
(char *)pdu->url);
|
||||||
last_optnum = COAP_OPT_URI_PATH;
|
last_optnum = COAP_OPT_URI_PATH;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -578,8 +578,8 @@ static ssize_t _write_options(coap_pkt_t *pdu, uint8_t *buf, size_t len)
|
|||||||
|
|
||||||
/* Uri-query for requests */
|
/* Uri-query for requests */
|
||||||
if (coap_get_code_class(pdu) == COAP_CLASS_REQ) {
|
if (coap_get_code_class(pdu) == COAP_CLASS_REQ) {
|
||||||
bufpos += coap_put_option_uri(bufpos, last_optnum, (char *)pdu->qs,
|
bufpos += coap_opt_put_uri_query(bufpos, last_optnum,
|
||||||
COAP_OPT_URI_QUERY);
|
(char *)pdu->qs);
|
||||||
/* uncomment when further options are added below ... */
|
/* uncomment when further options are added below ... */
|
||||||
/* last_optnum = COAP_OPT_URI_QUERY; */
|
/* last_optnum = COAP_OPT_URI_QUERY; */
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user