Microchip® Advanced Software Framework

common/components/wifi/winc1500/weather_client_example/main.h File Reference

MAIN configuration.

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

Macros

#define IPV4_BYTE(val, index)   ((val >> (index * 8)) & 0xFF)
 IP address parsing. More...
 
#define MAIN_CITY_NAME   "paris"
 Input City Name. More...
 
#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
 Wi-Fi AP Settings. More...
 
#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 MAIN_POST_BUFFER   "&appid=c592e14137c3471fa9627b44f6649db4&mode=xml&units=metric HTTP/1.1\r\nHost: api.openweathermap.org\r\nAccept: */*\r\n\r\n"
 
#define MAIN_PREFIX_BUFFER   "GET /data/2.5/weather?q="
 Send buffer of TCP socket. More...
 
#define MAIN_SERVER_PORT   (80)
 Using broadcast address for simplicity. More...
 
#define MAIN_WEATHER_SERVER_NAME   "api.openweathermap.org"
 Weather information provider server. More...
 
#define MAIN_WIFI_M2M_BUFFER_SIZE   1400
 Receive buffer size. More...
 

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 tstrM2MAPConfig gstrM2MAPConfig
 

#define IPV4_BYTE (   val,
  index 
)    ((val >> (index * 8)) & 0xFF)

IP address parsing.

#define MAIN_CITY_NAME   "paris"

Input City Name.

Referenced by socket_cb().

#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"
#define MAIN_M2M_AP_SEC   M2M_WIFI_SEC_OPEN

Wi-Fi AP Settings.

#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 MAIN_POST_BUFFER   "&appid=c592e14137c3471fa9627b44f6649db4&mode=xml&units=metric HTTP/1.1\r\nHost: api.openweathermap.org\r\nAccept: */*\r\n\r\n"

Referenced by socket_cb().

#define MAIN_PREFIX_BUFFER   "GET /data/2.5/weather?q="

Send buffer of TCP socket.

Referenced by socket_cb().

#define MAIN_SERVER_PORT   (80)

Using broadcast address for simplicity.

Referenced by main().

#define MAIN_WEATHER_SERVER_NAME   "api.openweathermap.org"

Weather information provider server.

Referenced by wifi_cb().

#define MAIN_WIFI_M2M_BUFFER_SIZE   1400

Receive buffer size.

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
tstrM2MAPConfig gstrM2MAPConfig
static
Initial value:
= {
}
#define WEP_40_KEY_STRING_SIZE
Definition: m2m_types.h:355
#define MAIN_M2M_AP_WEP_KEY
Definition: common/components/wifi/winc1500/weather_client_example/main.h:45
#define MAIN_M2M_AP_SSID_MODE
Definition: common/components/wifi/winc1500/weather_client_example/main.h:46
#define MAIN_M2M_DEVICE_NAME
Definition: common/components/wifi/winc1500/weather_client_example/main.h:50
#define MAIN_M2M_AP_SEC
Wi-Fi AP Settings.
Definition: common/components/wifi/winc1500/weather_client_example/main.h:44