Microchip® Advanced Software Framework

main.h File Reference

MAIN configuration.

Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.

Macros

#define MAIN_HEX2ASCII(x)   (((x) >= 10) ? (((x) - 10) + 'A') : ((x) + '0'))
 
#define MAIN_HTTP_PROV_SERVER_DOMAIN_NAME   "atmelconfig.com"
 
#define MAIN_M2M_AP_SEC   M2M_WIFI_SEC_OPEN
 
#define MAIN_M2M_AP_SSID_MODE   SSID_MODE_VISIBLE
 
#define MAIN_M2M_AP_WEP_KEY   "1234567890"
 
#define MAIN_M2M_DEVICE_NAME   "WINC1500_00:00"
 
#define MAIN_MAC_ADDRESS   {0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84}
 
#define NMA_API_KEY   "91787604ed50a6cfc2d3f83d1ee196cbc30a3cb08a7e69a0"
 
#define NMA_CONNECTION_TYPE   SSL_CONNECTION
 
#define NORMAL_CONNECTION   0
 
#define PROWL_API_KEY   "6ce3b9ff6c29e5c5b8960b28d9e987aec5ed603a"
 Growl Options. More...
 
#define PROWL_CONNECTION_TYPE   NORMAL_CONNECTION
 
#define SSL_CONNECTION   1
 

Variables

static int8_t gacDeviceName [] = MAIN_M2M_DEVICE_NAME
 
static CONST char gacHttpProvDomainName [] = MAIN_HTTP_PROV_SERVER_DOMAIN_NAME
 
static uint8_t gau8MacAddr [] = MAIN_MAC_ADDRESS
 
static volatile bool gbRespProvInfo = false
 Provision status variable. More...
 
static tstrM2MAPConfig gstrM2MAPConfig
 

#define MAIN_HEX2ASCII (   x)    (((x) >= 10) ? (((x) - 10) + 'A') : ((x) + '0'))

Referenced by set_dev_name_to_mac().

#define MAIN_HTTP_PROV_SERVER_DOMAIN_NAME   "atmelconfig.com"

Referenced by main().

#define MAIN_M2M_AP_SEC   M2M_WIFI_SEC_OPEN
#define MAIN_M2M_AP_SSID_MODE   SSID_MODE_VISIBLE
#define MAIN_M2M_AP_WEP_KEY   "1234567890"
#define MAIN_M2M_DEVICE_NAME   "WINC1500_00:00"
#define MAIN_MAC_ADDRESS   {0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84}
#define NMA_API_KEY   "91787604ed50a6cfc2d3f83d1ee196cbc30a3cb08a7e69a0"

Referenced by wifi_cb().

#define NMA_CONNECTION_TYPE   SSL_CONNECTION
#define NORMAL_CONNECTION   0
#define PROWL_API_KEY   "6ce3b9ff6c29e5c5b8960b28d9e987aec5ed603a"

Growl Options.

Referenced by wifi_cb().

#define PROWL_CONNECTION_TYPE   NORMAL_CONNECTION
#define SSL_CONNECTION   1

int8_t gacDeviceName[] = MAIN_M2M_DEVICE_NAME
static

Referenced by main().

CONST char gacHttpProvDomainName[] = MAIN_HTTP_PROV_SERVER_DOMAIN_NAME
static

Referenced by main().

uint8_t gau8MacAddr[] = MAIN_MAC_ADDRESS
static

Referenced by main().

volatile bool gbRespProvInfo = false
static

Provision status variable.

Referenced by wifi_cb().

tstrM2MAPConfig gstrM2MAPConfig
static
Initial value:
= {
}
#define WEP_40_KEY_STRING_SIZE
Definition: m2m_types.h:355
#define MAIN_M2M_AP_SSID_MODE
Definition: main.h:53
#define MAIN_M2M_DEVICE_NAME
Definition: main.h:57
#define MAIN_M2M_AP_WEP_KEY
Definition: main.h:52
#define MAIN_M2M_AP_SEC
Definition: main.h:51

Referenced by main().