Skip to content

Commit

Permalink
nanocoap_sock: make use of coap_method_t
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Oct 26, 2023
1 parent 1e854ec commit db3294a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/include/net/nanocoap_sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ typedef struct {
nanocoap_sock_t *sock; /**< socket used for the request */
const char *path; /**< path on the server */
uint32_t blknum; /**< current block number */
uint8_t method; /**< request method (GET, POST, PUT) */
coap_method_t method; /**< request method (GET, POST, PUT) */
uint8_t blksize; /**< CoAP blocksize exponent */
} coap_block_request_t;

Expand Down Expand Up @@ -580,7 +580,7 @@ ssize_t nanocoap_request(coap_pkt_t *pkt, const sock_udp_ep_t *local,
static inline int nanocoap_block_request_connect_url(coap_block_request_t *ctx,
nanocoap_sock_t *sock,
const char *url,
uint8_t method,
coap_method_t method,
coap_blksize_t blksize)
{
ctx->sock = sock;
Expand Down

0 comments on commit db3294a

Please sign in to comment.