28 #ifndef M2MB_WEB_PROV_H 29 #define M2MB_WEB_PROV_H 45 #ifdef M2MB_WEB_PROV_DEBUG_PRINT_ENABLE 46 #define WEB_PROV_DEBUG_PRINT m2mb_dbg_consol_print 48 #define WEB_PROV_DEBUG_PRINT(...) 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" M2MB_STATUS_T m2mb_httpd_prov_start(M2MB_PROV_CONFIG_T *pProvcfg, M2MB_HTTPD_CONFIG_T *pHTTPDcfg)
HTTP Provision Start.
enum M2MB_PROV_OBJECT_TYPE M2MB_PROV_OBJECT_TYPE_T
Object types enumeration.
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_ENCODE_TYPE
Encoding types enumeration.
M2MB_PROV_WEP_KEY_LEN
WEP key length enumeration.
M2MB_SYSTEM_CFG_T * pSystem
UINT8 sysConfigChangeApply
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
#define M2MB_PROV_MAX_SYS_ID_LEN
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
enum M2MB_PROV_WEP_KEY_LEN M2MB_PROV_WEP_KEY_LEN_T
WEP key length enumeration.
M2MB_PROV_REG_DOMAIN
Regulatory domains enumeration.
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
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.
struct M2MB_PROV_IP_CONFIG M2MB_PROV_IP_CONFIG_T
IP Configuration structure.
#define M2MB_PROV_NWIF_HOST_NAME_MAX_LEN
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
UINT8 dnsDomainName[M2MB_PROV_MAX_DNS_DOMAIN_LEN]
#define M2MB_PROV_MAC_SSID_LEN
M2MB_PROV_SYS_CONFIG_SYS_ID_T sysID
HTTP server configuration structure.
enum M2MB_PROV_SYS_CONFIG_OPTION M2MB_PROV_SYS_CONFIG_OPTION_T
Configuration opetions enumeration.
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
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.
AP Configuration structure.
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.
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 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.
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