globals.h 1.12 KB

/**@file
 * @brief Definition of global parameters
 * @author Imanol Barba Sabariego
 * @date 08/06/2014
 *
 * Here are defined several parameters that affect the current device configuration                                        
 */

#ifndef GLOBALS_H
#define GLOBALS_H

//! SENTILO platform server IP
#define SERVER_IP				"147.83.39.240"
//! SENTILO platform server hostname
#define SERVER_HOSTNAME			SERVER_IP
//! Module ID length
#define MODULE_ID_LENGTH		6
//! Maximum RAM available
#define MAX_RAM					34704
//! Current device module ID
#define MODULE_ID  				"000001"
//! Default Wi-Fi mode
#define WIFI_MODE               WIFI_MODE_CLIENT
//! Hosted AP name
#define NETWORK_SSID_AP         "modularsense"
//! Hosted AP encryption key
#define NETWORK_KEY_AP          NULL
//! Hosted AP channel
#define NETWORK_CHANNEL_AP      1
//! Wait time for each retry when in hard limit
#define HARD_LIMIT_WAIT_TIME 	10*1000 //5*60*1000
//! NTP remote server IP
#define SNTP_SERVER_ADDRESS     ipaddr_addr("81.184.154.182") /* your ntp server */
//! Type of server used (lewis.upc.es)
#define SERVER_LEWIS
#endif