1. Reduce the size of the heap memory to reduce the amount of memory usage 2. Change the TCP segment size 3. Disable UDP + DHCP + DNS 4. Change the configurations of the TCP/IP thread
Dependencies: Socket lwip-eth lwip-sys lwip
Fork of EthernetInterface by
Diff: EthernetInterface.cpp
- Revision:
- 36:5118a7657c6d
- Parent:
- 35:cba86db5ab96
--- a/EthernetInterface.cpp Wed Oct 09 12:00:18 2013 +0100 +++ b/EthernetInterface.cpp Sun Feb 02 10:46:57 2014 +0000 @@ -111,8 +111,9 @@ int inited; if (use_dhcp) { + #if LWIP_DHCP dhcp_start(&lpcNetif); - + #endif // Wait for an IP Address // -1: error, 0: timeout inited = netif_up.wait(timeout_ms); @@ -128,8 +129,10 @@ int EthernetInterface::disconnect() { if (use_dhcp) { + #if LWIP_DHCP dhcp_release(&lpcNetif); dhcp_stop(&lpcNetif); + #endif } else { netif_set_down(&lpcNetif); }