CoAP block-wise transfer. More...
|error_t||coapClientSetTxBlockSize (CoapClientRequest *request, uint_t blockSize)|
|Set preferred block for transmission path. More...|
|error_t||coapClientSetRxBlockSize (CoapClientRequest *request, uint_t blockSize)|
|Set preferred block for reception path. More...|
|error_t||coapClientWriteBody (CoapClientRequest *request, const void *data, size_t length, size_t *written, bool_t last)|
|Write resource body using block-wise mode. More...|
|error_t||coapClientReadBody (CoapClientRequest *request, void *data, size_t size, size_t *received)|
|Read resource body using block-wise mode. More...|
|Get maximum block size. More...|
CoAP block-wise transfer.
Copyright (C) 2010-2020 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Definition in file coap_client_block.h.
|error_t coapClientReadBody||(||CoapClientRequest *||request,|
Read resource body using block-wise mode.
[in] request CoAP request handle [out] data Buffer into which received data will be placed [in] size Maximum number of bytes that can be received [out] received Number of bytes that have been received
- Error code
|error_t coapClientWriteBody||(||CoapClientRequest *||request,|
|const void *||data,|
Write resource body using block-wise mode.
[in] request CoAP request handle [in] data Pointer to a buffer containing the data to be transmitted [in] length Number of bytes to be transmitted [out] written Actual number of bytes written (optional parameter) [in] last Flag indicating whether this message fragment is the last
- Error code