mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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");
|
||||
return -EINVAL;
|
||||
}
|
||||
bufpos += coap_put_option_uri(bufpos, last_optnum, (char *)pdu->url,
|
||||
COAP_OPT_URI_PATH);
|
||||
bufpos += coap_opt_put_uri_path(bufpos, last_optnum,
|
||||
(char *)pdu->url);
|
||||
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 */
|
||||
if (coap_get_code_class(pdu) == COAP_CLASS_REQ) {
|
||||
bufpos += coap_put_option_uri(bufpos, last_optnum, (char *)pdu->qs,
|
||||
COAP_OPT_URI_QUERY);
|
||||
bufpos += coap_opt_put_uri_query(bufpos, last_optnum,
|
||||
(char *)pdu->qs);
|
||||
/* uncomment when further options are added below ... */
|
||||
/* last_optnum = COAP_OPT_URI_QUERY; */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user