WE310F5  39.00.000
m2mb_web_prov.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
26 /* GLOBAL DECLARATIONS ==========================================================================*/
27 
28 #ifndef M2MB_WEB_PROV_H
29 #define M2MB_WEB_PROV_H
30 
56 #ifdef M2MB_WEB_PROV_DEBUG_PRINT_ENABLE
57 #define WEB_PROV_DEBUG_PRINT m2mb_dbg_consol_print
58 #else
59 #define WEB_PROV_DEBUG_PRINT(...)
60 #endif
61 
62 #define M2MB_PROV_MAC_SSID_LEN 32
63 #define M2MB_PROV_MAX_DNS_DOMAIN_LEN 64
64 #define M2MB_PROV_MAX_SYS_ID_LEN 64
65 #define M2MB_PROV_NWIF_HOST_NAME_MAX_LEN 15
66 #define M2MB_PROV_SEC_PASSPHRASE_LEN 64
67 #define M2MB_PROV_SEC_MAX_WEP_KEY_LEN M2MB_PROV_SEC_WEP104_KEY_LEN
69 #define M2MB_PROV_REG_DOMAIN_UNKNOWN_MAX_CH 14
71 #define M2MB_PROV_REG_DOMAIN_FCC_STR "fcc"
72 #define M2MB_PROV_REG_DOMAIN_ETSI_STR "etsi"
73 #define M2MB_PROV_REG_DOMAIN_ETSI_MEXS_STR "etsi_mex"
74 #define M2MB_PROV_REG_DOMAIN_TELEC_STR "telec"
75 #define M2MB_PROV_REG_DOMAIN_UNKNOWN_STR "unknown"
77 #define M2MB_PROV_2_4_GHZ_BAND "2.4GHz"
78 #define M2MB_PROV_5_GHZ_BAND "5GHz"
80 #define M2MB_PROV_SECURITY_NONE_STR "none"
81 #define M2MB_PROV_WEP_STR "wep"
82 #define M2MB_PROV_WPA_PERSONAL_STR "wpa-personal"
83 #define M2MB_PROV_WPA_ENTERPRISE_STR "wpa-enterprise"
85 #define M2MB_PROV_HTTPD_MAX_USERNAME_LEN 32
86 #define M2MB_PROV_HTTPD_MAX_PASSWORD_LEN 32
88 #define M2MB_PROV_HTTPD_DEFAULT_USERNAME "admin"
89 #define M2MB_PROV_HTTPD_DEFAULT_PASSWORD "admin"
92 /* Global typedefs ==============================================================================*/
93 
100 {
104 
111 {
116 
122 typedef enum M2MB_PROV_SEC_TYPE
123 {
129 
136 {
143 
149 typedef enum M2MB_PROV_AP_MODE
150 {
154 
161 {
167 
174 {
178 
185 {
189 
196 {
204 
210 typedef struct M2MB_PROV_SSID
211 {
215 
221 typedef struct M2MB_PROV_SEC_PSK
222 {
226 
233 {
239 
246 {
248  CHAR bssid[18];
259 
265 typedef struct M2MB_PROV_IP_CONFIG
266 {
269 
275 typedef struct M2MB_PROV_AP_CONFIG
276 {
292 
299 {
308 
315 {
319 
325 typedef struct M2MB_PROV_SYS_CONFIG
326 {
332 
339 
345 typedef struct M2MB_PROV_CONFIG_S
346 {
353 
354 /* External variables ===========================================================================*/
355 
356 /* External functions ===========================================================================*/
357 
358 /* Global functions =============================================================================*/
359 
360 /*-----------------------------------------------------------------------------------------------*/
422 /*-----------------------------------------------------------------------------------------------*/
425 
426 /*-----------------------------------------------------------------------------------------------*/
427 
431 /*-----------------------------------------------------------------------------------------------*/
432 
433 
434 #endif /* M2MB_WEB_PROV_H */
WEP Configuration structure.
M2MB_PROV_WEP_KEY_LEN
WEP key length enumeration.
#define M2MB_PROV_SEC_PASSPHRASE_LEN
Definition: m2mb_web_prov.h:66
M2MB_SYSTEM_CFG_T * pSystem
M2MB_PROV_SEC_WEP_CONFIG_T wep
M2MB_PROV_SEC_TYPE_T secType
System Configuration Identifier structure.
struct M2MB_PROV_CONFIG_S M2MB_PROV_CONFIG_T
Provisioning Configuration structure.
M2MB_STATUS_T(* M2MB_PROFILE_APPLY_CB_T)(UINT8 device_id, M2MB_PROFILE_EVENT_T event, M2MB_STATUS_T status, VOID *pData)
Profile apply callback prototype.
Definition: m2mb_profile.h:215
struct M2MB_PROV_CLIENT_CONFIG M2MB_PROV_CLIENT_CONFIG_T
Client Configuration structure.
unsigned char UINT8
Definition: m2mb_types.h:86
enum M2MB_PROV_NETWORK_MODE M2MB_PROV_NETWORK_MODE_T
Network mode enumeration.
M2MB_PROV_SEC_TYPE
Security type enumeration.
#define M2MB_PROV_MAC_SSID_LEN
Definition: m2mb_web_prov.h:62
M2MB_FWUP_USER_CB_T otafu_cb
System cfg structure.
Definition: m2mb_profile.h:846
M2MB_PROV_NETWORK_CONFIG_T nwk
UINT8 dnsDomainName[M2MB_PROV_MAX_DNS_DOMAIN_LEN]
struct M2MB_PROV_SEC_WEP_CONFIG M2MB_PROV_SEC_WEP_CONFIG_T
WEP Configuration structure.
M2MB_PROFILE_APPLY_CB_T profile_apply_cb
M2MB_PROV_SYS_CONFIG_SYS_ID_T sysID
M2MB_PROV_SEC_WEP_CONFIG_T wep
enum M2MB_PROV_ENCODE_TYPE M2MB_PROV_ENCODE_TYPE_T
Encoding types enumeration.
#define M2MB_PROV_MAX_DNS_DOMAIN_LEN
Definition: m2mb_web_prov.h:63
int(* M2MB_PROV_CONFIG_CB_T)(M2MB_PROV_SYS_CONFIG_T *cfg, M2MB_PROV_SYS_CONFIG_OPTION_T option)
Provision configuration call back prototype.
UINT8 uid[M2MB_PROV_MAX_SYS_ID_LEN]
enum M2MB_PROV_REG_DOMAIN M2MB_PROV_REG_DOMAIN_T
Regulatory domains enumeration.
M2MB_PROV_REG_DOMAIN
Regulatory domains enumeration.
M2MB_PROV_ENCODE_TYPE
Encoding types enumeration.
#define M2MB_PROV_NWIF_HOST_NAME_MAX_LEN
Definition: m2mb_web_prov.h:65
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:97
M2MB_PROV_WEP_AUTH_TYPE_T authType
struct M2MB_PROV_IP_CONFIG M2MB_PROV_IP_CONFIG_T
IP Configuration structure.
enum M2MB_PROV_AP_MODE M2MB_PROV_AP_MODE_T
AP mode enumeration.
unsigned short UINT16
Definition: m2mb_types.h:87
enum M2MB_PROV_WEP_AUTH_TYPE M2MB_PROV_WEP_AUTH_TYPE_T
WEP authentication type enumeration.
M2MB_PROV_NETWORK_MODE
Network mode enumeration.
M2MB_PROV_SYS_CONFIG_OPTION
Configuration opetions enumeration.
M2MB_PROV_AP_MODE
AP mode enumeration.
enum M2MB_PROV_SYS_CONFIG_OPTION M2MB_PROV_SYS_CONFIG_OPTION_T
Configuration opetions enumeration.
M2MB_PROV_SSID_T ssid
enum M2MB_PROV_OBJECT_TYPE M2MB_PROV_OBJECT_TYPE_T
Object types enumeration.
#define M2MB_PROV_MAX_SYS_ID_LEN
Definition: m2mb_web_prov.h:64
char CHAR
Definition: m2mb_types.h:76
UINT8 Key[M2MB_PROV_SEC_MAX_WEP_KEY_LEN]
struct M2MB_PROV_SYS_CONFIG M2MB_PROV_SYS_CONFIG_T
System Configuration structure.
IP Configuration structure.
M2MB_PROV_AP_MODE_T groupProvMode
UINT8 hostName[M2MB_PROV_NWIF_HOST_NAME_MAX_LEN+1]
UINT8 array[M2MB_PROV_MAC_SSID_LEN]
enum M2MB_PROV_WEP_KEY_LEN M2MB_PROV_WEP_KEY_LEN_T
WEP key length enumeration.
struct M2MB_PROV_SYS_CONFIG_SYS_ID M2MB_PROV_SYS_CONFIG_SYS_ID_T
System Configuration Identifier structure.
M2MB_PROV_IP_CONFIG_T ip
M2MB_STATUS_T m2mb_httpd_prov_start(M2MB_PROV_CONFIG_T *pProvcfg, M2MB_HTTPD_CONFIG_T *pHTTPDcfg)
HTTP Provision Start.
struct M2MB_PROV_SSID M2MB_PROV_SSID_T
SSID structure.
Provisioning Configuration structure.
struct M2MB_PROV_NETWORK_CONFIG M2MB_PROV_NETWORK_CONFIG_T
Network Configuration structure.
HTTP server configuration structure.
Definition: m2mb_httpd.h:176
M2MB_PROV_REG_DOMAIN_T regDomain
struct M2MB_PROV_AP_CONFIG M2MB_PROV_AP_CONFIG_T
AP Configuration structure.
unsigned long int UINT32
Definition: m2mb_types.h:88
PSK structure.
M2MB_PROV_OBJECT_TYPE
Object types enumeration.
M2MB_PROV_CONFIG_CB_T config_cb
M2MB_PROV_CLIENT_CONFIG_T client
M2MB_PROV_WEP_KEY_LEN_T KeyLen
enum M2MB_PROV_SEC_TYPE M2MB_PROV_SEC_TYPE_T
Security type enumeration.
Network Configuration structure.
#define M2MB_PROV_SEC_MAX_WEP_KEY_LEN
Definition: m2mb_web_prov.h:67
M2MB_PROV_SEC_PSK_T passphrase
M2MB_PROV_WEP_AUTH_TYPE
WEP authentication type enumeration.
Definition: m2mb_web_prov.h:99
Client Configuration structure.
M2MB_PROV_ENCODE_TYPE_T code
VOID(* M2MB_FWUP_USER_CB_T)(void *user_ctx, M2MB_FWUP_STATUS_CODE_T resp_code)
Firmware Upgrade user call back prototype.
Definition: m2mb_fwup.h:195
struct M2MB_PROV_SEC_PSK M2MB_PROV_SEC_PSK_T
PSK structure.
SSID structure.
M2MB_PROV_SSID_T ssid
UINT8 name[M2MB_PROV_MAX_SYS_ID_LEN]
M2MB_PROV_SEC_TYPE_T secType
M2MB_PROV_SEC_PSK_T passphrase
System Configuration structure.
M2MB_PROV_AP_CONFIG_T ap
UINT8 array[M2MB_PROV_SEC_PASSPHRASE_LEN]
AP Configuration structure.