WL865E4-P  36.07.001
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 
45 #ifdef M2MB_WEB_PROV_DEBUG_PRINT_ENABLE
46 #define WEB_PROV_DEBUG_PRINT m2mb_dbg_consol_print
47 #else
48 #define WEB_PROV_DEBUG_PRINT(...)
49 #endif
50 
51 #define M2MB_PROV_MAC_SSID_LEN 32
52 #define M2MB_PROV_MAX_DNS_DOMAIN_LEN 64
53 #define M2MB_PROV_MAX_SYS_ID_LEN 64
54 #define M2MB_PROV_NWIF_HOST_NAME_MAX_LEN 15
55 #define M2MB_PROV_SEC_PASSPHRASE_LEN 64
56 #define M2MB_PROV_SEC_MAX_WEP_KEY_LEN M2MB_PROV_SEC_WEP104_KEY_LEN
58 #define M2MB_PROV_REG_DOMAIN_UNKNOWN_MAX_CH 14
60 #define M2MB_PROV_REG_DOMAIN_FCC_STR "fcc"
61 #define M2MB_PROV_REG_DOMAIN_ETSI_STR "etsi"
62 #define M2MB_PROV_REG_DOMAIN_ETSI_MEXS_STR "etsi_mex"
63 #define M2MB_PROV_REG_DOMAIN_TELEC_STR "telec"
64 #define M2MB_PROV_REG_DOMAIN_UNKNOWN_STR "unknown"
66 #define M2MB_PROV_2_4_GHZ_BAND "2.4GHz"
67 #define M2MB_PROV_5_GHZ_BAND "5GHz"
69 #define M2MB_PROV_SECURITY_NONE_STR "none"
70 #define M2MB_PROV_WEP_STR "wep"
71 #define M2MB_PROV_WPA_PERSONAL_STR "wpa-personal"
72 #define M2MB_PROV_WPA_ENTERPRISE_STR "wpa-enterprise"
74 #define M2MB_PROV_HTTPD_MAX_USERNAME_LEN 32
75 #define M2MB_PROV_HTTPD_MAX_PASSWORD_LEN 32
77 #define M2MB_PROV_HTTPD_DEFAULT_USERNAME "admin"
78 #define M2MB_PROV_HTTPD_DEFAULT_PASSWORD "admin"
81 /* Global typedefs ==============================================================================*/
82 
89 {
93 
100 {
105 
111 typedef enum M2MB_PROV_SEC_TYPE
112 {
118 
125 {
132 
138 typedef enum M2MB_PROV_AP_MODE
139 {
143 
150 {
156 
163 {
167 
174 {
178 
185 {
193 
199 typedef struct M2MB_PROV_SSID
200 {
204 
210 typedef struct M2MB_PROV_SEC_PSK
211 {
215 
222 {
228 
235 {
237  CHAR bssid[18];
248 
254 typedef struct M2MB_PROV_IP_CONFIG
255 {
258 
264 typedef struct M2MB_PROV_AP_CONFIG
265 {
281 
288 {
297 
304 {
308 
314 typedef struct M2MB_PROV_SYS_CONFIG
315 {
321 
328 
334 typedef struct M2MB_PROV_CONFIG_S
335 {
342 
343 /* External variables ===========================================================================*/
344 
345 /* External functions ===========================================================================*/
346 
347 /* Global functions =============================================================================*/
348 
349 /*-----------------------------------------------------------------------------------------------*/
411 /*-----------------------------------------------------------------------------------------------*/
414 
415 /*-----------------------------------------------------------------------------------------------*/
416 
420 /*-----------------------------------------------------------------------------------------------*/
421 
422 
423 #endif /* M2MB_WEB_PROV_H */
M2MB_STATUS_T m2mb_httpd_prov_start(M2MB_PROV_CONFIG_T *pProvcfg, M2MB_HTTPD_CONFIG_T *pHTTPDcfg)
HTTP Provision Start.
unsigned char UINT8
Definition: m2mb_types.h:83
enum M2MB_PROV_OBJECT_TYPE M2MB_PROV_OBJECT_TYPE_T
Object types enumeration.
SSID structure.
enum M2MB_PROV_WEP_AUTH_TYPE M2MB_PROV_WEP_AUTH_TYPE_T
WEP authentication type enumeration.
M2MB_FWUP_USER_CB_T otafu_cb
UINT8 name[M2MB_PROV_MAX_SYS_ID_LEN]
M2MB_PROV_SEC_TYPE_T secType
M2MB_PROV_SSID_T ssid
M2MB_PROV_ENCODE_TYPE
Encoding types enumeration.
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:95
M2MB_PROV_WEP_KEY_LEN
WEP key length enumeration.
Definition: m2mb_web_prov.h:99
M2MB_SYSTEM_CFG_T * pSystem
struct M2MB_PROV_NETWORK_CONFIG M2MB_PROV_NETWORK_CONFIG_T
Network Configuration structure.
struct M2MB_PROV_CLIENT_CONFIG M2MB_PROV_CLIENT_CONFIG_T
Client Configuration structure.
M2MB_PROV_SEC_PSK_T passphrase
PSK structure.
#define M2MB_PROV_MAX_SYS_ID_LEN
Definition: m2mb_web_prov.h:53
M2MB_PROV_SEC_WEP_CONFIG_T wep
enum M2MB_PROV_NETWORK_MODE M2MB_PROV_NETWORK_MODE_T
Network mode enumeration.
UINT8 array[M2MB_PROV_SEC_PASSPHRASE_LEN]
#define M2MB_PROV_SEC_PASSPHRASE_LEN
Definition: m2mb_web_prov.h:55
enum M2MB_PROV_WEP_KEY_LEN M2MB_PROV_WEP_KEY_LEN_T
WEP key length enumeration.
M2MB_PROV_REG_DOMAIN
Regulatory domains enumeration.
M2MB_PROV_IP_CONFIG_T ip
struct M2MB_PROV_SSID M2MB_PROV_SSID_T
SSID structure.
M2MB_PROV_ENCODE_TYPE_T code
Network Configuration structure.
#define M2MB_PROV_SEC_MAX_WEP_KEY_LEN
Definition: m2mb_web_prov.h:56
M2MB_PROV_SEC_TYPE
Security type enumeration.
M2MB_PROV_SYS_CONFIG_OPTION
Configuration opetions enumeration.
struct M2MB_PROV_SEC_PSK M2MB_PROV_SEC_PSK_T
PSK structure.
struct M2MB_PROV_SYS_CONFIG_SYS_ID M2MB_PROV_SYS_CONFIG_SYS_ID_T
System Configuration Identifier structure.
struct M2MB_PROV_SYS_CONFIG M2MB_PROV_SYS_CONFIG_T
System Configuration structure.
M2MB_PROV_AP_CONFIG_T ap
struct M2MB_PROV_IP_CONFIG M2MB_PROV_IP_CONFIG_T
IP Configuration structure.
unsigned short UINT16
Definition: m2mb_types.h:84
#define M2MB_PROV_NWIF_HOST_NAME_MAX_LEN
Definition: m2mb_web_prov.h:54
struct M2MB_PROV_AP_CONFIG M2MB_PROV_AP_CONFIG_T
AP Configuration structure.
int(* M2MB_PROV_CONFIG_CB_T)(M2MB_PROV_SYS_CONFIG_T *cfg, M2MB_PROV_SYS_CONFIG_OPTION_T option)
Provision configuration call back prototype.
M2MB_PROV_NETWORK_MODE
Network mode enumeration.
M2MB_PROV_CLIENT_CONFIG_T client
unsigned long int UINT32
Definition: m2mb_types.h:85
UINT8 dnsDomainName[M2MB_PROV_MAX_DNS_DOMAIN_LEN]
#define M2MB_PROV_MAC_SSID_LEN
Definition: m2mb_web_prov.h:51
M2MB_PROV_SYS_CONFIG_SYS_ID_T sysID
HTTP server configuration structure.
Definition: m2mb_httpd.h:135
enum M2MB_PROV_SYS_CONFIG_OPTION M2MB_PROV_SYS_CONFIG_OPTION_T
Configuration opetions enumeration.
char CHAR
Definition: m2mb_types.h:74
M2MB_PROV_AP_MODE
AP mode enumeration.
Client Configuration structure.
M2MB_PROV_SEC_TYPE_T secType
enum M2MB_PROV_ENCODE_TYPE M2MB_PROV_ENCODE_TYPE_T
Encoding types enumeration.
M2MB_PROV_WEP_KEY_LEN_T KeyLen
UINT8 uid[M2MB_PROV_MAX_SYS_ID_LEN]
System Configuration structure.
#define M2MB_PROV_MAX_DNS_DOMAIN_LEN
Definition: m2mb_web_prov.h:52
M2MB_PROV_AP_MODE_T groupProvMode
enum M2MB_PROV_AP_MODE M2MB_PROV_AP_MODE_T
AP mode enumeration.
M2MB_PROV_WEP_AUTH_TYPE
WEP authentication type enumeration.
Definition: m2mb_web_prov.h:88
AP Configuration structure.
M2MB_PROV_SSID_T ssid
UINT8 Key[M2MB_PROV_SEC_MAX_WEP_KEY_LEN]
M2MB_PROV_REG_DOMAIN_T regDomain
M2MB_PROV_NETWORK_CONFIG_T nwk
WEP Configuration structure.
VOID(* M2MB_FWUP_USER_CB_T)(M2MB_FWUP_STATUS_CODE_T resp_code)
Firmware Upgrade user call back prototype.
Definition: m2mb_fwup.h:201
M2MB_PROV_SEC_PSK_T passphrase
struct M2MB_PROV_SEC_WEP_CONFIG M2MB_PROV_SEC_WEP_CONFIG_T
WEP Configuration structure.
UINT8 array[M2MB_PROV_MAC_SSID_LEN]
struct M2MB_PROV_CONFIG_S M2MB_PROV_CONFIG_T
Provisioning Configuration structure.
M2MB_PROV_WEP_AUTH_TYPE_T authType
System cfg structure.
Definition: m2mb_profile.h:877
System Configuration Identifier structure.
IP Configuration structure.
M2MB_PROV_OBJECT_TYPE
Object types enumeration.
M2MB_PROFILE_APPLY_CB_T profile_apply_cb
M2MB_PROV_SEC_WEP_CONFIG_T wep
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:210
UINT8 hostName[M2MB_PROV_NWIF_HOST_NAME_MAX_LEN+1]
enum M2MB_PROV_SEC_TYPE M2MB_PROV_SEC_TYPE_T
Security type enumeration.
enum M2MB_PROV_REG_DOMAIN M2MB_PROV_REG_DOMAIN_T
Regulatory domains enumeration.
M2MB_PROV_CONFIG_CB_T config_cb