uint16_t fileId,
uint32_t blockSize,
uint16_t blockOffset,
uint32_t numberOfBlocksRequested,
char * getStreamRequest,
size_t getStreamRequestLength );
size_t mqttDownloader_createGetDataBlockRequest(DataType_t dataType, uint16_t fileId, uint32_t blockSize, uint16_t blockOffset, uint32_t numberOfBlocksRequested, char *getStreamRequest, size_t getStreamRequestLength)
Creates the get request for Data blocks from MQTT Streams.
Definition: MQTTFileDownloader.c:284
DataType_t
contains all the data types supported.
Definition: MQTTFileDownloader.h:104
Creates the get request for Data blocks from MQTT Streams.
- Parameters
-
| [in] | dataType | Either JSON or CBOR data type. |
| [in] | fileId | File Id of the file to be downloaded from MQTT Streams. |
| [in] | blockSize | Requested size of block. |
| [in] | blockOffset | Block Offset. |
| [in] | numberOfBlocksRequested | Number of Blocks requested per request. |
| [out] | getStreamRequest | Buffer to store the get stream request. |
| [in] | getStreamRequestLength | Length of getStreamRequest buffer. |
- Returns
- size_t returns Length of the get stream request.