coap_client_block.c
error_t coapClientSetPayload(CoapMessage *message, const void *payload, size_t payloadLen)
Set message payload.
Definition: coap_client_request.c:828
error_t coapGetUintOption(const CoapMessage *message, uint16_t optionNum, uint_t optionIndex, uint32_t *optionValue)
Get the value of the specified uint option.
Definition: coap_option.c:651
CoapMessage * coapClientGetRequestMessage(CoapClientRequest *request)
Get request message.
Definition: coap_client_request.c:370
error_t coapClientSendRequest(CoapClientRequest *request, CoapRequestCallback callback, void *param)
Send a CoAP request.
Definition: coap_client_request.c:157
CoapMessage * coapClientGetResponseMessage(CoapClientRequest *request)
Get response message.
Definition: coap_client_request.c:414
error_t coapClientSetTxBlockSize(CoapClientRequest *request, uint_t blockSize)
Set preferred block for transmission path.
Definition: coap_client_block.c:52
error_t coapClientGetPayload(const CoapMessage *message, const uint8_t **payload, size_t *payloadLen)
Get message payload.
Definition: coap_client_request.c:852
CoAP client.
CoapBlockSize coapClientGetMaxBlockSize(void)
Get maximum block size.
Definition: coap_client_block.c:600
error_t coapClientReadPayload(CoapMessage *message, void *data, size_t size, size_t *length)
Read payload data.
Definition: coap_client_request.c:893
error_t coapClientWriteBody(CoapClientRequest *request, const void *data, size_t length, size_t *written, bool_t last)
Write resource body using block-wise mode.
Definition: coap_client_block.c:175
error_t coapClientReadBody(CoapClientRequest *request, void *data, size_t size, size_t *received)
Read resource body using block-wise mode.
Definition: coap_client_block.c:400
CoAP block-wise transfer.
void osAcquireMutex(OsMutex *mutex)
Acquire ownership of the specified mutex object.
Definition: os_port_chibios.c:396
void osReleaseMutex(OsMutex *mutex)
Release ownership of the specified mutex object.
Definition: os_port_chibios.c:408
error_t coapClientSetRxBlockSize(CoapClientRequest *request, uint_t blockSize)
Set preferred block for reception path.
Definition: coap_client_block.c:112
error_t coapClientWritePayload(CoapMessage *message, const void *data, size_t length)
Write payload data.
Definition: coap_client_request.c:872
error_t coapClientGetUintOption(const CoapMessage *message, uint16_t optionNum, uint_t optionIndex, uint32_t *optionValue)
Read an uint option from the CoAP message.
Definition: coap_client_request.c:788
error_t coapClientSetUintOption(CoapMessage *message, uint16_t optionNum, uint_t optionIndex, uint32_t optionValue)
Add a uint option to the CoAP message.
Definition: coap_client_request.c:721
TCP/IP stack core.
error_t coapClientDeleteOption(CoapMessage *message, uint16_t optionNum, uint_t optionIndex)
Remove an option from the CoAP message.
Definition: coap_client_request.c:808
error_t coapClientGetResponseCode(const CoapMessage *message, CoapCode *code)
Get response code.
Definition: coap_client_request.c:526
Debugging facilities.