examples/gcoap: replace gcoap_req_send()
This commit is contained in:
parent
c9179a26c8
commit
f1495f839d
@ -196,7 +196,7 @@ static size_t _send(uint8_t *buf, size_t len, char *addr_str, char *port_str)
|
||||
return 0;
|
||||
}
|
||||
|
||||
bytes_sent = gcoap_req_send2(buf, len, &remote, _resp_handler);
|
||||
bytes_sent = gcoap_req_send(buf, len, &remote, _resp_handler);
|
||||
if (bytes_sent > 0) {
|
||||
req_count++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user