WL865E4-P  36.07.001
m2mb_fwup_plugin_httpclient.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
28 /* GLOBAL DECLARATIONS ==========================================================================*/
29 
30 #ifndef M2MB_FWUP_PLUGIN_HTTPC_API_H
31 #define M2MB_FWUP_PLUGIN_HTTPC_API_H
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
50 /*-----------------------------------------------------------------------------------------------*/
51 
52 #define M2MB_FWUP_HTTPC_DEFAULT_MAX_BODY_LEN 2048
53 #define M2MB_FWUP_HTTPC_DEFAULT_MAX_HEADER_LEN 350
55 /* Global typedefs ==============================================================================*/
56 
62 typedef struct M2M_FWUP_HTTP_CLIENT
63 {
68 
69 /*-----------------------------------------------------------------------------------------------*/
70 
71 /* External variables ===========================================================================*/
72 
73 /* External functions ===========================================================================*/
74 
75 /* Global functions =============================================================================*/
76 
77 /*-----------------------------------------------------------------------------------------------*/
144 /*-----------------------------------------------------------------------------------------------*/
146  UINT32 SrvPort,
147  UINT32 Timeout,
148  UINT32 sslEnableFlag,
149  M2MB_FWUP_USER_CB_T user_cb,
150  INT8 *username,
151  INT8 *password );
152 
153 
205 /*-----------------------------------------------------------------------------------------------*/
207 
211 /*-----------------------------------------------------------------------------------------------*/
212 
213 #endif /* M2MB_FWUP_PLUGIN_HTTPC_API_H */
214 
215 
HANDLE M2MB_SSL_CTXT_HANDLE
SSL context handle. This is obtained from m2mb_ssl_create_ctxt API and then used in subsequent SSL ...
Definition: m2mb_ssl.h:107
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.
signed char INT8
Definition: m2mb_types.h:78
struct M2M_FWUP_HTTP_CLIENT M2M_FWUP_HTTP_CLIENT_T
HTTP client structure for FWUP.
unsigned long int UINT32
Definition: m2mb_types.h:85
void VOID
Definition: m2mb_types.h:72
VOID m2m_fwup_http_client_deinit(M2MB_HTTPC_CTX_T *pFWUPHTTPcCtx)
FWUP module de-initialization for HTTP Client mode.
VOID(* M2MB_FWUP_USER_CB_T)(M2MB_FWUP_STATUS_CODE_T resp_code)
Firmware Upgrade user call back prototype.
Definition: m2mb_fwup.h:201
HTTP client structure for FWUP.