Skip to content

Commit

Permalink
Update pdu.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Koushik4082 authored May 17, 2018
1 parent 7164418 commit bd60461
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/coap/pdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,16 @@ int coap_add_token(coap_pdu_t *pdu,
int coap_add_token2(coap_pdu_t *pdu, size_t len, const unsigned char *data,
coap_transport_t transport);

/**
* @param pdu The pdu pointer.
* @param len The length of the new token.
* @param data The token to add.
* @param transport The transport type.
* @return A value greater than zero on success, or @c 0 on error.
*/
int coap_add_token_to_empty_message(coap_pdu_t *pdu, size_t len, const unsigned char *data,
coap_transport_t transport);

/**
* Get token from coap header
*
Expand Down

0 comments on commit bd60461

Please sign in to comment.