STIMA  3
gsm_config.h
Go to the documentation of this file.
1 
3 /*********************************************************************
4 Copyright (C) 2017 Marco Baldinetti <m.baldinetti@digiteco.it>
5 authors:
6 Paolo Patruno <p.patruno@iperbole.bologna.it>
7 Marco Baldinetti <m.baldinetti@digiteco.it>
8 
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 **********************************************************************/
22 
23 #ifndef _GSM_CONFIG_H
24 #define _GSM_CONFIG_H
25 
30 #define GSM_APN_TIM ("ibox.tim.it")
31 
36 #define GSM_APN_WIND ("internet.wind")
37 
42 #define GSM_APN_VODAFONE ("web.omnitel.it")
43 
48 #define GSM_DEFAULT_APN (GSM_APN_TIM)
49 
54 #define GSM_DEFAULT_USERNAME ("")
55 
60 #define GSM_DEFAULT_PASSWORD ("")
61 
66 #define GSM_APN_LENGTH (20)
67 
72 #define GSM_USERNAME_LENGTH (20)
73 
78 #define GSM_PASSWORD_LENGTH (20)
79 
84 #define USE_SIM_800C (true)
85 
90 #define USE_SIM_800L (false)
91 
92 #if (USE_SIM_800C == true && USE_SIM_800L == true)
93 #error What SIM800 do you want to use? specific it in gsm_config.h
94 
95 #elif (USE_SIM_800C == true)
96 #define SIM800_ON_OFF_PIN (5)
97 
98 #elif (USE_SIM_800L == true)
99 #define SIM800_ON_OFF_PIN (7)
100 #define SIM800_RESET_PIN (6)
101 
102 #endif
103 
104 #endif