mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 05:53:49 +01:00
nanocoap_sock: use coap_get_code_raw()
This commit is contained in:
parent
b8ec36aef3
commit
e2e5e03439
@ -284,7 +284,7 @@ ssize_t nanocoap_sock_request_cb(nanocoap_sock_t *sock, coap_pkt_t *pkt,
|
||||
}
|
||||
|
||||
state = STATE_RESPONSE_OK;
|
||||
DEBUG("nanocoap: response code=%i\n", coap_get_code(pkt));
|
||||
DEBUG("nanocoap: response code=%i\n", coap_get_code_decimal(pkt));
|
||||
switch (coap_get_type(pkt)) {
|
||||
case COAP_TYPE_RST:
|
||||
/* TODO: handle different? */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user