Struct SYN_CoapRequest¶
CoAP client request context. More...
#include <syn_coap.h>
Public Attributes¶
| Type | Name |
|---|---|
| SYN_Backoff | backoff |
| const SYN_CoapMsg * | req_msg |
| size_t | req_option_count |
| const SYN_CoapOption * | req_options |
| uint8_t | resp_buf |
| size_t | resp_len |
| SYN_CoapMsg | resp_msg |
| size_t | resp_option_count |
| SYN_CoapOption | resp_options |
| SYN_SockAddr | server_addr |
| SYN_Socket | sock |
| uint32_t | start_ms |
| SYN_Status | status |
| uint8_t | tx_buf |
| size_t | tx_len |
Detailed Description¶
Populate the input fields, then register as a scheduler task using syn_coap_request_task. On completion, check status and read the response from resp_msg.
Public Attributes Documentation¶
variable backoff¶
Retransmit backoff state
variable req_msg¶
Request message to send
variable req_option_count¶
Number of request options
variable req_options¶
Request options array
variable resp_buf¶
Raw response packet buffer
variable resp_len¶
Raw response length in bytes
variable resp_msg¶
Parsed response message
variable resp_option_count¶
Number of parsed response options
variable resp_options¶
Parsed response options
variable server_addr¶
Destination UDP address
variable sock¶
UDP socket handle
variable start_ms¶
Tick at start of current send attempt
variable status¶
Final result (SYN_OK / SYN_TIMEOUT / SYN_ERROR)
variable tx_buf¶
Serialized request (persists across retries)
variable tx_len¶
Length of serialized request
The documentation for this class was generated from the following file src/syntropic/net/syn_coap.h