28 #ifndef M2MB_WEB_PROV_H 29 #define M2MB_WEB_PROV_H 56 #ifdef M2MB_WEB_PROV_DEBUG_PRINT_ENABLE 57 #define WEB_PROV_DEBUG_PRINT m2mb_dbg_consol_print 59 #define WEB_PROV_DEBUG_PRINT(...) 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" WEP Configuration structure.
M2MB_PROV_WEP_KEY_LEN
WEP key length enumeration.
#define M2MB_PROV_SEC_PASSPHRASE_LEN
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.
struct M2MB_PROV_CLIENT_CONFIG M2MB_PROV_CLIENT_CONFIG_T
Client Configuration structure.
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
M2MB_FWUP_USER_CB_T otafu_cb
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
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
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.
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.
enum M2MB_PROV_OBJECT_TYPE M2MB_PROV_OBJECT_TYPE_T
Object types enumeration.
#define M2MB_PROV_MAX_SYS_ID_LEN
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]
UINT8 sysConfigChangeApply
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_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.
M2MB_PROV_REG_DOMAIN_T regDomain
struct M2MB_PROV_AP_CONFIG M2MB_PROV_AP_CONFIG_T
AP Configuration 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
M2MB_PROV_SEC_PSK_T passphrase
M2MB_PROV_WEP_AUTH_TYPE
WEP authentication type enumeration.
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.
struct M2MB_PROV_SEC_PSK M2MB_PROV_SEC_PSK_T
PSK structure.
UINT8 name[M2MB_PROV_MAX_SYS_ID_LEN]
M2MB_PROV_SEC_TYPE_T secType
M2MB_PROV_SEC_PSK_T passphrase
System Configuration structure.
UINT8 array[M2MB_PROV_SEC_PASSPHRASE_LEN]
AP Configuration structure.