Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-client-c by
Diff: nsdl-c/sn_coap_protocol.h
- Revision:
- 4:5d91b0f5038c
- Parent:
- 1:43f5c94c6771
--- a/nsdl-c/sn_coap_protocol.h Fri Feb 19 17:46:29 2016 +0000 +++ b/nsdl-c/sn_coap_protocol.h Sat Apr 02 00:39:03 2016 +0300 @@ -141,7 +141,7 @@ * \return 0 = success * -1 = failure */ -extern int8_t sn_coap_protocol_set_block_size(uint16_t block_size); +extern int8_t sn_coap_protocol_set_block_size(struct coap_s *handle, uint16_t block_size); /** * \fn int8_t sn_coap_protocol_set_duplicate_buffer_size(uint8_t message_count) @@ -152,7 +152,7 @@ * \return 0 = success * -1 = failure */ -extern int8_t sn_coap_protocol_set_duplicate_buffer_size(uint8_t message_count); +extern int8_t sn_coap_protocol_set_duplicate_buffer_size(struct coap_s *handle, uint8_t message_count); /** * \fn int8_t sn_coap_protocol_set_retransmission_parameters(uint8_t resending_count, uint8_t resending_intervall) @@ -161,10 +161,10 @@ * * \param uint8_t resending_count max number of resendings for message * \param uint8_t resending_intervall message resending intervall in seconds - * \return 0 = success - * -1 = failure + * \return 0 = success, -1 = failure */ -extern int8_t sn_coap_protocol_set_retransmission_parameters(uint8_t resending_count, uint8_t resending_interval); +extern int8_t sn_coap_protocol_set_retransmission_parameters(struct coap_s *handle, + uint8_t resending_count, uint8_t resending_interval); /** * \fn int8_t sn_coap_protocol_set_retransmission_buffer(uint8_t buffer_size_messages, uint16_t buffer_size_bytes) @@ -174,10 +174,10 @@ * * \param uint8_t buffer_size_messages queue size - maximum number of messages to be saved to queue * \param uint8_t buffer_size_bytes queue size - maximum size of messages saved to queue - * \return 0 = success - * -1 = failure + * \return 0 = success, -1 = failure */ -extern int8_t sn_coap_protocol_set_retransmission_buffer(uint8_t buffer_size_messages, uint16_t buffer_size_bytes); +extern int8_t sn_coap_protocol_set_retransmission_buffer(struct coap_s *handle, + uint8_t buffer_size_messages, uint16_t buffer_size_bytes); /** * \fn void sn_coap_protocol_clear_retransmission_buffer(struct coap_s *handle) @@ -186,11 +186,10 @@ * * \brief If re-transmissions are enabled, this function removes all messages from the retransmission queue. */ -extern void sn_coap_protocol_clear_retransmission_buffer(struct coap_s *handle); +extern void sn_coap_protocol_clear_retransmission_buffer(struct coap_s *handle); #endif /* SN_COAP_PROTOCOL_H_ */ #ifdef __cplusplus } #endif -