text: /**
   * \file
   *
   * \brief MAIN configuration.
   *
   * Copyright (c) 2016-2018 Microchip Technology Inc. and its subsidiaries.
   *
   * \asf_license_start
   *
   * \page License
   *
   * Subject to your compliance with these terms, you may use Microchip
   * software and any derivatives exclusively with Microchip products.
   * It is your responsibility to comply with third party license terms applicable
   * to your use of third party software (including open source software) that
   * may accompany Microchip software.
   *
   * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES,
   * WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE,
   * INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY,
   * AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL MICROCHIP BE
   * LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, INCIDENTAL OR CONSEQUENTIAL
   * LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND WHATSOEVER RELATED TO THE
   * SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS BEEN ADVISED OF THE
   * POSSIBILITY OR THE DAMAGES ARE FORESEEABLE.  TO THE FULLEST EXTENT
   * ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN ANY WAY
   * RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
   * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
   *
   * \asf_license_stop
   *
   */
  
  #ifndef MAIN_H_INCLUDED
  #define MAIN_H_INCLUDED
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #include "driver/include/m2m_wifi.h"
  
  /** Growl Options */
  #define PROWL_API_KEY            "6ce3b9ff6c29e5c5b8960b28d9e987aec5ed603a"
  #define NMA_API_KEY              "91787604ed50a6cfc2d3f83d1ee196cbc30a3cb08a7e69a0" //"0757fe93214fc2cdf2ad42a5005ee0aa83a7a8ea242c0b80"
  #define SSL_CONNECTION           1
  #define NORMAL_CONNECTION        0
  #define PROWL_CONNECTION_TYPE    NORMAL_CONNECTION
  #define NMA_CONNECTION_TYPE      SSL_CONNECTION
  
  #define MAIN_M2M_AP_SEC                  M2M_WIFI_SEC_OPEN
  #define MAIN_M2M_AP_WEP_KEY              "1234567890"
  #define MAIN_M2M_AP_SSID_MODE            SSID_MODE_VISIBLE
  
  #define MAIN_HTTP_PROV_SERVER_DOMAIN_NAME    "atmelconfig.com"
  
  #define MAIN_M2M_DEVICE_NAME                 "WINC1500_00:00"
  #define MAIN_MAC_ADDRESS                     {0xf8, 0xf0, 0x05, 0x45, 0xD4, 0x84}
  
  #define MAIN_HEX2ASCII(x) (((x) >= 10) ? (((x) - 10) + 'A') : ((x) + '0'))
  
  static tstrM2MAPConfig gstrM2MAPConfig = {
  	MAIN_M2M_DEVICE_NAME, 1, 0, WEP_40_KEY_STRING_SIZE, MAIN_M2M_AP_WEP_KEY, (uint8_t)MAIN_M2M_AP_SEC, MAIN_M2M_AP_SSID_MODE
  };
  
  static CONST char gacHttpProvDomainName[] = MAIN_HTTP_PROV_SERVER_DOMAIN_NAME;
  
  static uint8_t gau8MacAddr[] = MAIN_MAC_ADDRESS;
  static int8_t gacDeviceName[] = MAIN_M2M_DEVICE_NAME;
  
  /** Provision status variable. */
  static volatile bool gbRespProvInfo = false;
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* MAIN_H_INCLUDED */
  