File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ typedef unsigned short uip_stats_t;
152
152
* UDP Broadcast (receive) on or off
153
153
* (see uipethernet-conf.h)
154
154
* \hideinitializer
155
- * #define UIP_CONF_BROADCAST 1
156
155
*/
156
+ #define UIP_CONF_BROADCAST 1
157
157
158
158
159
159
/**
Original file line number Diff line number Diff line change 3
3
4
4
/* for TCP */
5
5
#ifndef UIP_SOCKET_NUMPACKETS
6
- #define UIP_SOCKET_NUMPACKETS 5
6
+ #define UIP_SOCKET_NUMPACKETS 3
7
7
#endif
8
8
#ifndef UIP_CONF_MAX_CONNECTIONS
9
9
#define UIP_CONF_MAX_CONNECTIONS 4
10
10
#endif
11
11
12
12
/* for UDP
13
- * set UIP_CONF_UDP to 0 to disable UDP (saves aprox. 5kb flash) */
13
+ * set UIP_CONF_UDP to 0 to disable UDP (saves aprox. 4kB flash) */
14
14
#ifndef UIP_CONF_UDP
15
15
#define UIP_CONF_UDP 1
16
16
#endif
17
- #ifndef UIP_CONF_BROADCAST
18
- #define UIP_CONF_BROADCAST 1
19
- #endif
20
17
#ifndef UIP_CONF_UDP_CONNS
21
18
#define UIP_CONF_UDP_CONNS 4
22
19
#endif
30
27
/* timeout after which UIPClient::connect gives up. The timeout is specified in seconds.
31
28
* if set to a number <= 0 connect will timeout when uIP does (which might be longer than you expect...) */
32
29
#ifndef UIP_CONNECT_TIMEOUT
33
- #define UIP_CONNECT_TIMEOUT -1
30
+ #define UIP_CONNECT_TIMEOUT 5
34
31
#endif
35
32
36
33
/* periodic timer for uip (in ms) */
37
34
#ifndef UIP_PERIODIC_TIMER
38
- #define UIP_PERIODIC_TIMER 250
35
+ #define UIP_PERIODIC_TIMER 100
39
36
#endif
40
37
41
38
/* timer to poll client for data after last write (in ms)
You can’t perform that action at this time.
0 commit comments