mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
cord_ep: replace gcoap_req_send2()
This commit is contained in:
parent
f1495f839d
commit
0579ef952e
@ -149,7 +149,7 @@ static int _update_remove(unsigned code, gcoap_resp_handler_t handle)
|
||||
ssize_t pkt_len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE);
|
||||
|
||||
/* send request */
|
||||
gcoap_req_send2(buf, pkt_len, &_rd_remote, handle);
|
||||
gcoap_req_send(buf, pkt_len, &_rd_remote, handle);
|
||||
|
||||
/* synchronize response */
|
||||
return _sync();
|
||||
@ -221,7 +221,7 @@ static int _discover_internal(const sock_udp_ep_t *remote,
|
||||
coap_hdr_set_type(pkt.hdr, COAP_TYPE_CON);
|
||||
gcoap_add_qstring(&pkt, "rt", "core.rd");
|
||||
size_t pkt_len = coap_opt_finish(&pkt, COAP_OPT_FINISH_NONE);
|
||||
res = gcoap_req_send2(buf, pkt_len, remote, _on_discover);
|
||||
res = gcoap_req_send(buf, pkt_len, remote, _on_discover);
|
||||
if (res < 0) {
|
||||
return CORD_EP_ERR;
|
||||
}
|
||||
@ -288,7 +288,7 @@ int cord_ep_register(const sock_udp_ep_t *remote, const char *regif)
|
||||
pkt_len += res;
|
||||
|
||||
/* send out the request */
|
||||
res = gcoap_req_send2(buf, pkt_len, remote, _on_register);
|
||||
res = gcoap_req_send(buf, pkt_len, remote, _on_register);
|
||||
if (res < 0) {
|
||||
retval = CORD_EP_ERR;
|
||||
goto end;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user