globals.h
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**@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