Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Called by the µC/HTTP-client core when the form table is formatted to be sent.

Each HTTPc_MULTIPART_FILE objects contained in a table form must have set up a hook function pointer with the parameter OnFileTx. The HTTPc transmit buffer pointer and the length available inside are passed as argument to allow the hook function to copy the data file directly inside the HTTPc buffer.

Prototype

Arguments

p_conn_obj

Pointer to the current HTTPc Connection Object.

p_req_obj

Pointer to the current HTTPc Request Object.

p_file_obj

Pointer to the Multipart File object.

p_buf

Pointer to transmit buffer.

buf_len

Length available inside the transmit buffer.

p_len_wr

Data length actually written inside the buffer by the hook function.

Return Values

DEF_YES, if all the data have been written to the buffer.

DEF_NO,   otherwise

Required Configuration

None.

Notes / Warnings

None.

Example Template

This code uses  the µC/FS File System for example purposes.

  • No labels