STIMA  3
ethernet_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 _ETHERNET_CONFIG_H
24 #define _ETHERNET_CONFIG_H
25 
30 #define ETHERNET_DEFAULT_DHCP_ENABLE (true)
31 
36 #define ETHERNET_DEFAULT_MAC ("E2:21:B6:44:EB:29")
37 
42 #define ETHERNET_DEFAULT_IP ("192.168.0.100")
43 
48 #define ETHERNET_DEFAULT_NETMASK ("255.255.255.0")
49 
54 #define ETHERNET_DEFAULT_GATEWAY ("192.168.0.1")
55 
60 #define ETHERNET_DEFAULT_PRIMARY_DNS ("192.168.0.1")
61 
66 #define ETHERNET_DEFAULT_LOCAL_UDP_PORT (8000)
67 
72 #define ETHERNET_ATTEMPT_MS (2000)
73 
78 #define ETHERNET_RETRY_TIME_MS (4000)
79 
84 #define ETHERNET_RETRY_COUNT (3)
85 
90 #define ETHERNET_MQTT_TIMEOUT_MS (6000)
91 
96 #define ETHERNET_MAC_LENGTH (6)
97 
102 #define ETHERNET_IP_LENGTH (4)
103 
104 #endif