Microchip® Advanced Software Framework

m2m_test_config.h File Reference

Configurations and definitions of different test applications.

Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.

Data Structures

struct  tstrM2mAp
 

Macros

#define AP_LIST
 
#define AUTH_CREDENTIALS   { M2M_802_1X_USR_NAME, M2M_802_1X_PWD }
 
#define BLE_PIN   {1, 2, 3, 4, 5, 6}
 
#define BROADCAST   "255.255.255.255"
 
#define CLIENT_KEEPALIVE   "0001,"DEMO_PRODUCT_NAME","
 
#define CLIENT_REPORT   "0002,"DEMO_PRODUCT_NAME",00.0,0,"
 
#define CLIENT_RPOS_LED   (sizeof(CLIENT_REPORT) - 3)
 
#define CLIENT_RPOS_TEMP   (sizeof(CLIENT_REPORT) - 8)
 
#define CONF_DEMO_LED_PIN   PIN_PB12
 
#define DEFAULT_AUTH   M2M_WIFI_SEC_WPA_PSK
 
#define DEFAULT_KEY   "12345678"
 
#define DEFAULT_PREFIX   "NMI"
 
#define DEFAULT_SSID   "DEMO_AP"
 
#define DEMO_PRODUCT_NAME   "WINC3400_DEMO"
 
#define DEMO_REPORT_INTERVAL   (1000)
 
#define DEMO_SERVER_IP   "192.168.2.3"
 
#define DEMO_SERVER_PORT   (6666)
 
#define GAIN_TABLE_FROM_FLASH   0
 
#define GROWL_RPOS_TEMP   (sizeof(GRWOL_REPORT) - 5)
 
#define GRWOL_REPORT   ""DEMO_PRODUCT_NAME" = 00.0"
 
#define HTTP_PROV_SERVER_DOMAIN_NAME   "atmelconfig.com"
 
#define HTTP_PROV_SERVER_IP_ADDRESS   {192, 168, 1, 1}
 
#define M2M_802_1X_PWD   "M2M_PAssworD"
 
#define M2M_802_1X_USR_NAME   "Nmi_M2m_Usr"
 
#define M2M_CLIENT_CHECK_STATE   ((uint8)0)
 
#define M2M_CLIENT_CMD_LED_OFF   ((uint8)11)
 
#define M2M_CLIENT_CMD_LED_ON   ((uint8)12)
 
#define M2M_CLIENT_CMD_WAKE_FIRMWARE   ((uint8)10)
 
#define M2M_CLIENT_RESP_BTN1_PRESS   ((uint8)21)
 
#define M2M_CLIENT_RESP_BTN2_PRESS   ((uint8)22)
 
#define M2M_CLIENT_RESP_MOVEMENT   ((uint8)20)
 
#define M2M_DEVICE_NAME   "WINC3400_00:00"
 
#define M2M_SEC_PARAM_MAX   M2M_MAX(M2M_PSK_MAX_LENGTH, sizeof(tstr1xAuthCredentials))
 
#define M2M_SERVER_CHANNEL   M2M_WIFI_CH_6
 
#define MAC_ADDRESS   {0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84}
 
#define NMI_M2M_AP   "WINC3400_00:00"
 
#define NMI_M2M_AP_CHANNEL   M2M_WIFI_CH_1
 
#define NMI_M2M_AP_SEC   M2M_WIFI_SEC_OPEN
 
#define NMI_M2M_AP_SSID_MODE   SSID_MODE_VISIBLE
 
#define NMI_M2M_AP_WEP_KEY   "1234567890"
 
#define NMI_M2M_AP_WEP_KEY_INDEX   M2M_WIFI_WEP_KEY_INDEX_1
 
#define OTA_URL   "http://192.168.1.101:8080/m2m_ota_3a0.bin"
 
#define PROV_DISABLED   0
 
#define PROV_ENABLED   1
 
#define PS_REQ_CHECK   4
 
#define PS_REQ_SLEEP   3
 
#define PS_SLEEP   1
 
#define PS_SLEEP_TIME_MS   30000 /*30sec*/
 
#define PS_WAKE   0
 
#define SERVER_REPORT   "0002,"DEMO_PRODUCT_NAME","
 
#define SERVER_RPOS_LED   (sizeof(SERVER_REPORT) - 1)
 
#define SHARED_PKT_MEM_BASE   0xd0000UL
 
#define TEST_BUS_BUF_SZ   100U
 
#define WEP_CONN_PARAM   { WEP_KEY_INDEX, WEP_KEY_SIZE, WEP_KEY}
 
#define WEP_KEY   "1234567890"
 
#define WEP_KEY_INDEX   M2M_WIFI_WEP_KEY_INDEX_1
 
#define WEP_KEY_SIZE   sizeof(WEP_KEY)
 
#define WPS_DISABLED   0
 
#define WPS_ENABLED   1
 

#define AP_LIST
Value:
{ \
{"DEMO_AP1", (uint8*)"", M2M_WIFI_SEC_OPEN}, \
{"DEMO_AP2", (uint8*)&gstrWepParams, M2M_WIFI_SEC_WEP}, \
{"DEMO_AP3", (uint8*)"12345678", M2M_WIFI_SEC_WPA_PSK}, \
{"DEMO_AP4", (uint8*)&gstrCred1x, M2M_WIFI_SEC_802_1X}, \
/* Add more access points to the scan list here... */ \
}
Definition: m2m_types.h:918
Definition: m2m_types.h:916
#define DEFAULT_AUTH
Definition: m2m_test_config.h:118
Definition: m2m_types.h:922
#define DEFAULT_SSID
Definition: m2m_test_config.h:117
Definition: m2m_types.h:920
#define DEFAULT_KEY
Definition: m2m_test_config.h:119
unsigned char uint8
Range of values between 0 to 255.
Definition: nm_bsp.h:93
#define AUTH_CREDENTIALS   { M2M_802_1X_USR_NAME, M2M_802_1X_PWD }
#define BLE_PIN   {1, 2, 3, 4, 5, 6}
#define BROADCAST   "255.255.255.255"
#define CLIENT_KEEPALIVE   "0001,"DEMO_PRODUCT_NAME","
#define CLIENT_REPORT   "0002,"DEMO_PRODUCT_NAME",00.0,0,"
#define CLIENT_RPOS_LED   (sizeof(CLIENT_REPORT) - 3)
#define CLIENT_RPOS_TEMP   (sizeof(CLIENT_REPORT) - 8)
#define CONF_DEMO_LED_PIN   PIN_PB12
#define DEFAULT_AUTH   M2M_WIFI_SEC_WPA_PSK
#define DEFAULT_KEY   "12345678"
#define DEFAULT_PREFIX   "NMI"
#define DEFAULT_SSID   "DEMO_AP"
#define DEMO_PRODUCT_NAME   "WINC3400_DEMO"
#define DEMO_REPORT_INTERVAL   (1000)
#define DEMO_SERVER_IP   "192.168.2.3"
#define DEMO_SERVER_PORT   (6666)
#define GAIN_TABLE_FROM_FLASH   0
#define GROWL_RPOS_TEMP   (sizeof(GRWOL_REPORT) - 5)
#define GRWOL_REPORT   ""DEMO_PRODUCT_NAME" = 00.0"
#define HTTP_PROV_SERVER_DOMAIN_NAME   "atmelconfig.com"
#define HTTP_PROV_SERVER_IP_ADDRESS   {192, 168, 1, 1}
#define M2M_802_1X_PWD   "M2M_PAssworD"
#define M2M_802_1X_USR_NAME   "Nmi_M2m_Usr"
#define M2M_CLIENT_CHECK_STATE   ((uint8)0)
#define M2M_CLIENT_CMD_LED_OFF   ((uint8)11)
#define M2M_CLIENT_CMD_LED_ON   ((uint8)12)
#define M2M_CLIENT_CMD_WAKE_FIRMWARE   ((uint8)10)
#define M2M_CLIENT_RESP_BTN1_PRESS   ((uint8)21)
#define M2M_CLIENT_RESP_BTN2_PRESS   ((uint8)22)
#define M2M_CLIENT_RESP_MOVEMENT   ((uint8)20)
#define M2M_DEVICE_NAME   "WINC3400_00:00"

Referenced by app_wifi_init().

#define M2M_SEC_PARAM_MAX   M2M_MAX(M2M_PSK_MAX_LENGTH, sizeof(tstr1xAuthCredentials))
#define M2M_SERVER_CHANNEL   M2M_WIFI_CH_6
#define MAC_ADDRESS   {0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84}

Referenced by app_wifi_init().

#define NMI_M2M_AP   "WINC3400_00:00"
#define NMI_M2M_AP_CHANNEL   M2M_WIFI_CH_1
#define NMI_M2M_AP_SEC   M2M_WIFI_SEC_OPEN
#define NMI_M2M_AP_SSID_MODE   SSID_MODE_VISIBLE
#define NMI_M2M_AP_WEP_KEY   "1234567890"
#define NMI_M2M_AP_WEP_KEY_INDEX   M2M_WIFI_WEP_KEY_INDEX_1
#define OTA_URL   "http://192.168.1.101:8080/m2m_ota_3a0.bin"
#define PROV_DISABLED   0
#define PROV_ENABLED   1
#define PS_REQ_CHECK   4
#define PS_REQ_SLEEP   3
#define PS_SLEEP   1
#define PS_SLEEP_TIME_MS   30000 /*30sec*/

Referenced by app_wifi_init().

#define PS_WAKE   0
#define SERVER_REPORT   "0002,"DEMO_PRODUCT_NAME","
#define SERVER_RPOS_LED   (sizeof(SERVER_REPORT) - 1)
#define SHARED_PKT_MEM_BASE   0xd0000UL
#define TEST_BUS_BUF_SZ   100U
#define WEP_CONN_PARAM   { WEP_KEY_INDEX, WEP_KEY_SIZE, WEP_KEY}
#define WEP_KEY   "1234567890"
#define WEP_KEY_INDEX   M2M_WIFI_WEP_KEY_INDEX_1
#define WEP_KEY_SIZE   sizeof(WEP_KEY)
#define WPS_DISABLED   0
#define WPS_ENABLED   1