![]() |
nRF51 IoT SDK
|
Structure to hold a CoAP message configuration. More...
#include <coap_api.h>
Data Fields | |
coap_response_callback_t | response_callback |
void * | arg |
uint8_t | token [8] |
uint8_t | token_len |
uint16_t | id |
coap_msg_type_t | type |
coap_msg_code_t | code |
coap_port_t | port |
Structure to hold a CoAP message configuration.
The structure is used when calling the coap_request_create API function. All data supplied will be copied to the created message.
void* coap_message_conf_t::arg |
Callback function to be called when a response matching the token is identified.
coap_msg_code_t coap_message_conf_t::code |
Message type: COAP_TYPE_CON, COAP_TYPE_NON, COAP_TYPE_ACK, or COAP_TYPE_RST.
uint16_t coap_message_conf_t::id |
Token size in bytes.
coap_port_t coap_message_conf_t::port |
Message code (definitions found in coap_msg_code_t).
uint8_t coap_message_conf_t::token[8] |
Miscellaneous pointer to application provided data that is associated with the message.
uint8_t coap_message_conf_t::token_len |
Message token. token_len must be set to indicate how many of the bytes should be used in the token.
coap_msg_type_t coap_message_conf_t::type |
Message ID. If 0 is given, the library will replace this number with an autogenerated value.