/**
 * \file
 *
 * \brief MAIN configuration.
 *
 * Copyright (c) 2015 - 2018 Atmel Corporation. All rights reserved.
 *
 * \asf_license_start
 *
 * \page License
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 *    this list of conditions and the following disclaimer in the documentation
 *    and/or other materials provided with the distribution.
 *
 * 3. The name of Atmel may not be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 * \asf_license_stop
 *
 */

#ifndef MAIN_H_INCLUDED
#define MAIN_H_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif

//#include "driver/include/m2m_wifi.h"
//
//// <<< Use Configuration Wizard in Context Menu >>>
////<h> General network settings in AP (access point) mode
//// <s> Network SSID
//// <id> app_main_m2m_device_name
//#ifndef MAIN_M2M_SSID
//#define MAIN_M2M_SSID "WINC1500_00:00"
//#endif
//
//// <o> Security type
//// <1=> Wi-Fi network is not secured
//// <2=> WPA/WPA2 personal(PSK)
//// <3=> WEP (40 or 104) OPEN OR SHARED
//// <4=> WPA/WPA2 Enterprise.IEEE802.1x
//// <id> app_main_m2m_ap_sec
//#ifndef MAIN_M2M_AP_SEC
//#define MAIN_M2M_AP_SEC 1
//#endif
//
//// <s> Security key
//// <id> app_main_m2m_ap_key
//#ifndef MAIN_M2M_AP_KEY
//#define MAIN_M2M_AP_KEY "12345FFFFF"
//#endif
//
//// <o> SSID mode
//// <0=>SSID is visible to others
//// <1=>SSID is hidden
//// <id> app_main_m2m_ap_ssid_mode
//#ifndef MAIN_M2M_AP_SSID_MODE
//#define MAIN_M2M_AP_SSID_MODE 0
//#endif
////</h>
////<h> DHCP server IP address in AP (access point) mode
//// <o> DHCP server IP address 1 <0-255>
//// <id> app_ip_address_1
//#ifndef DHCP_IP_ADDRESS_1
//#define DHCP_IP_ADDRESS_1 192
//#endif
//
//// <o> DHCP server IP address 2 <0-255>
//// <id> app_ip_address_2
//#ifndef DHCP_IP_ADDRESS_2
//#define DHCP_IP_ADDRESS_2 168
//#endif
//
//// <o> DHCP server IP address 3 <0-255>
//// <id> app_ip_address_3
//#ifndef DHCP_IP_ADDRESS_3
//#define DHCP_IP_ADDRESS_3 1
//#endif
//
//// <o> DHCP server IP address 4 <0-255>
//// <id> app_ip_address_4
//#ifndef DHCP_IP_ADDRESS_4
//#define DHCP_IP_ADDRESS_4 1
//#endif
////</h>
//// <<< end of configuration section >>>
//
///** Using broadcast address for simplicity. */
//#define MAIN_SERVER_PORT (80)
//
///** Using IP address. */
//#define IPV4_BYTE(val, index) ((val >> (index * 8)) & 0xFF)
//
///** Send buffer of TCP socket. */
//#define MAIN_PREFIX_BUFFER "GET /data/2.5/weather?q="
//#define MAIN_POST_BUFFER                                                                                               \
//	"&mode=xml&units=metric&appid=c592e14137c3471fa9627b44f6649db4 HTTP/1.1\r\nHost: "                                 \
//	"api.openweathermap.org\r\nAccept: */*\r\n\r\n"
///** Weather information provider server. */
//#define MAIN_WEATHER_SERVER_NAME "openweathermap.org"
//
///** Input City Name. */
//#define MAIN_CITY_NAME "london"
//
///** Receive buffer size. */
//#define MAIN_WIFI_M2M_BUFFER_SIZE 1024
//
//#define MAIN_M2M_DHCP_SERVER_IP                                                                                        \
//	{                                                                                                                  \
//		DHCP_IP_ADDRESS_1, DHCP_IP_ADDRESS_2, DHCP_IP_ADDRESS_3, DHCP_IP_ADDRESS_4                                     \
//	}
//#define MAIN_HTTP_PROV_SERVER_DOMAIN_NAME "atmel.com"
//
//#define MAIN_MAC_ADDRESS                                                                                               \
//	{                                                                                                                  \
//		0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84                                                                             \
//	}
//
//#define MAIN_HEX2ASCII(x) (((x) >= 10) ? (((x)-10) + 'A') : ((x) + '0'))
//
//#define TEMPERATURE_ABS(a) (((a) > 0) ? (a) : -(a))
//
//static tstrM2MAPConfig gstrM2MAPConfig = {MAIN_M2M_SSID,
//                                          1,
//                                          0,
//                                          sizeof(MAIN_M2M_AP_KEY) - 1,
//                                          MAIN_M2M_AP_KEY,
//                                          MAIN_M2M_AP_SEC,
//                                          MAIN_M2M_AP_SSID_MODE,
//                                          MAIN_M2M_DHCP_SERVER_IP};
//
//static CONST char gacHttpProvDomainName[] = MAIN_HTTP_PROV_SERVER_DOMAIN_NAME;
//
//static uint8 gau8MacAddr[]   = MAIN_MAC_ADDRESS;
//static sint8 gacDeviceName[] = MAIN_M2M_SSID;
//
//#define MAIN_WAITING_TIME 3000
//#define MAIN_RETRY_COUNT 10

#ifdef __cplusplus
}
#endif

#endif /* MAIN_H_INCLUDED */
