![]() |
WL865E4-P
36.07.001
|
This section describes the M2MB APIs for FWUP Plugin for HTTP Client. More...
| #define | M2MB_FWUP_HTTPC_DEFAULT_MAX_BODY_LEN 2048 |
| #define | M2MB_FWUP_HTTPC_DEFAULT_MAX_HEADER_LEN 350 |
| typedef struct M2M_FWUP_HTTP_CLIENT | M2M_FWUP_HTTP_CLIENT_T |
| HTTP client structure for FWUP. More... | |
| M2MB_HTTPC_CTX_T * | m2m_fwup_http_client_init (INT8 *SrvAddr, UINT32 SrvPort, UINT32 Timeout, UINT32 sslEnableFlag, M2MB_FWUP_USER_CB_T user_cb, INT8 *username, INT8 *password) |
| FWUP module initialization for HTTP Client mode. More... | |
| VOID | m2m_fwup_http_client_deinit (M2MB_HTTPC_CTX_T *pFWUPHTTPcCtx) |
| FWUP module de-initialization for HTTP Client mode. More... | |
This section describes the M2MB APIs for FWUP Plugin for HTTP Client.
| #define M2MB_FWUP_HTTPC_DEFAULT_MAX_BODY_LEN 2048 |
| #define M2MB_FWUP_HTTPC_DEFAULT_MAX_HEADER_LEN 350 |
Maximum header size supported for HTTPc
Definition at line 53 of file m2mb_fwup_plugin_httpclient.h.
| typedef struct M2M_FWUP_HTTP_CLIENT M2M_FWUP_HTTP_CLIENT_T |
HTTP client structure for FWUP.
Structure for storing HTTP client related information for FWUP operations.
| VOID m2m_fwup_http_client_deinit | ( | M2MB_HTTPC_CTX_T * | pFWUPHTTPcCtx | ) |
FWUP module de-initialization for HTTP Client mode.
This API de-initializes FWUP module for HTTP Client mode.
| [in] | pFWUPHTTPcCtx | Pointer to HTTPc Context returned by m2m_fwup_http_clinet_init. |
m2m_fwup_http_clinet_deinit( M2MB_HTTPC_CTX_T *pFWUPHTTPcCtx );
| M2MB_HTTPC_CTX_T* m2m_fwup_http_client_init | ( | INT8 * | SrvAddr, |
| UINT32 | SrvPort, | ||
| UINT32 | Timeout, | ||
| UINT32 | sslEnableFlag, | ||
| M2MB_FWUP_USER_CB_T | user_cb, | ||
| INT8 * | username, | ||
| INT8 * | password | ||
| ) |
FWUP module initialization for HTTP Client mode.
This API initializes FWUP module for HTTP Client mode.
| [in] | SrvAddr | Address of HTTP server. |
| [in] | SrvPort | Port number of HTTP server. |
| [in] | Timeout | Timeout in milliseconds. |
| [in] | sslEnableFlag | Flag to enable/disable SSL. |
| [in] | user_cb | User callback to capture FWUP operational status. |
| [in] | username | Username for HTTP server with authentication. |
| [in] | password | Password for HTTP server with authentication. |
m2m_fwup_http_clinet_init( INT8 *SrvAddr, UINT32 SrvPort, UINT32 Timeout, UINT32 sslEnableFlag, M2MB_FWUP_USER_CB_T user_cb, INT8 *username, INT8 *password );