Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 3.00.00

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

Info

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