Skip to content

Commit 95db21f

Browse files
committed
uipethernet-conf.h changed defaults
1 parent a502fd2 commit 95db21f

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/utility/uip-conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ typedef unsigned short uip_stats_t;
152152
* UDP Broadcast (receive) on or off
153153
* (see uipethernet-conf.h)
154154
* \hideinitializer
155-
* #define UIP_CONF_BROADCAST 1
156155
*/
156+
#define UIP_CONF_BROADCAST 1
157157

158158

159159
/**

src/utility/uipethernet-conf.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@
33

44
/* for TCP */
55
#ifndef UIP_SOCKET_NUMPACKETS
6-
#define UIP_SOCKET_NUMPACKETS 5
6+
#define UIP_SOCKET_NUMPACKETS 3
77
#endif
88
#ifndef UIP_CONF_MAX_CONNECTIONS
99
#define UIP_CONF_MAX_CONNECTIONS 4
1010
#endif
1111

1212
/* 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) */
1414
#ifndef UIP_CONF_UDP
1515
#define UIP_CONF_UDP 1
1616
#endif
17-
#ifndef UIP_CONF_BROADCAST
18-
#define UIP_CONF_BROADCAST 1
19-
#endif
2017
#ifndef UIP_CONF_UDP_CONNS
2118
#define UIP_CONF_UDP_CONNS 4
2219
#endif
@@ -30,12 +27,12 @@
3027
/* timeout after which UIPClient::connect gives up. The timeout is specified in seconds.
3128
* if set to a number <= 0 connect will timeout when uIP does (which might be longer than you expect...) */
3229
#ifndef UIP_CONNECT_TIMEOUT
33-
#define UIP_CONNECT_TIMEOUT -1
30+
#define UIP_CONNECT_TIMEOUT 5
3431
#endif
3532

3633
/* periodic timer for uip (in ms) */
3734
#ifndef UIP_PERIODIC_TIMER
38-
#define UIP_PERIODIC_TIMER 250
35+
#define UIP_PERIODIC_TIMER 100
3936
#endif
4037

4138
/* timer to poll client for data after last write (in ms)

0 commit comments

Comments
 (0)