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

...

Structure FieldTypeDescriptionPossible Values

TaskDly_ms

CPU_INT08U

µC/HTTP-client Task delay in milliseconds.

When the asynchronous task is enabled, the task can be periodically delayed to allow other lower priority tasks to run.

Default value: [HTTPc_DFLT_TASK_DLY_MS] = 10ms

MUST be >= 1

Connection Configuration Fields

Connection This configuration does NOT represent the maximum number of simultaneous connectionsTwo Connection Queues exist, one for opening and the other for closing connections.
Queue size doesn't need to be very large since connections will be rapidly added to the connection list.
Structure FieldTypeDescriptionPossible Values
ConnQ

0

MsgQ_SizeCPU_INT08U

Size of the µC/HTTP-client

Task Msg Queue.

This configuration represent the number of request to task that can be sent simultaneously. In other words, it defines the number of time you can call either a HTTPc_ConnOpen(), HTTPc_ReqSend(), HTTPc_ConnClose() and HTTP_WebSockSend() simultaneously. Note that this apply mostly when those request are done with the non-blocking option.

Default value: [HTTPc_DFLT_CONN_Q_SIZE] = 5

MUST be >= 1

Connection Configuration Fields

Structure FieldTypeDescriptionPossible Values
ConnConnectTimeout_msCPU_INT16U

Connection Connect Timeout value in milliseconds.

Time allocated to perform a connection with the HTTP server.

Default value: [HTTPc_DFLT_CONN_CONNECT_TIMEOUT_MS] = 2000ms

MUST be >= 1000; <= 10000

ConnInactivityTimeout_sCPU_INT16U

Connection Inactivity Timeout value in seconds.

The inactivity timeout is set up to close the connection after a period of inactivity. 

Default value: [HTTPc_DFLT_CONN_INACTIVITY_TIMEOUT_S] = 30s

MUST be >= 1; <= 255

Request Configuration Fields

Structure FieldTypeDescriptionPossible Values
ReqQ_SizeCPU_INT08U

Size of the µC/HTTP-client Request Queue.

Queue size doesn't need to be very large since requests are rapidly added to the request list.
This configuration does NOT represent the maximum number of requests queuing. 

Default value: [HTTPc_DFLT_REQ_Q_SIZE] = 5

MUST be >= 1


Task Configuration Structure
Anchor
Task Configuration Structure
Task Configuration Structure

When the µC/HTTP-client task is enabled (see HTTPc_CFG_MODE_ASYNC_TASK_EN) a task configuration must be passed to the function HTTPc_Init. The µC/HTTP-client Task configuration structure is presented below.

...