gcoap: rename gcoap_req_send2() to gcoap_req_send()
This commit is contained in:
parent
affd115405
commit
a11f817604
@ -592,9 +592,9 @@ static inline ssize_t gcoap_request(coap_pkt_t *pdu, uint8_t *buf, size_t len,
|
|||||||
* @return length of the packet
|
* @return length of the packet
|
||||||
* @return 0 if cannot send
|
* @return 0 if cannot send
|
||||||
*/
|
*/
|
||||||
size_t gcoap_req_send2(const uint8_t *buf, size_t len,
|
size_t gcoap_req_send(const uint8_t *buf, size_t len,
|
||||||
const sock_udp_ep_t *remote,
|
const sock_udp_ep_t *remote,
|
||||||
gcoap_resp_handler_t resp_handler);
|
gcoap_resp_handler_t resp_handler);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initializes a CoAP response packet on a buffer
|
* @brief Initializes a CoAP response packet on a buffer
|
||||||
|
|||||||
@ -707,9 +707,9 @@ ssize_t gcoap_finish(coap_pkt_t *pdu, size_t payload_len, unsigned format)
|
|||||||
return pdu->payload_len + (pdu->payload - (uint8_t *)pdu->hdr);
|
return pdu->payload_len + (pdu->payload - (uint8_t *)pdu->hdr);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t gcoap_req_send2(const uint8_t *buf, size_t len,
|
size_t gcoap_req_send(const uint8_t *buf, size_t len,
|
||||||
const sock_udp_ep_t *remote,
|
const sock_udp_ep_t *remote,
|
||||||
gcoap_resp_handler_t resp_handler)
|
gcoap_resp_handler_t resp_handler)
|
||||||
{
|
{
|
||||||
gcoap_request_memo_t *memo = NULL;
|
gcoap_request_memo_t *memo = NULL;
|
||||||
unsigned msg_type = (*buf & 0x30) >> 4;
|
unsigned msg_type = (*buf & 0x30) >> 4;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user