Pages: [1]   Go Down
Author Topic: [solved] IDE1 DHCP library: included (Terrell) vs Kaindl's one  (Read 1198 times)
0 Members and 1 Guest are viewing this topic.
italy
Offline Offline
Full Member
***
Karma: 3
Posts: 223
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In arduino IDE 1 a library for managing DHCP is included. This is taken from Jordan Terrell's library and it is called when we inwoke int EthernetClass::begin(uint8_t *mac_address). The problem is that, because of Ethernet library new structure, the DHCP is called ONLY there. So if your ip lease expires you have to call again the begin (or reset the program execution). I think this is not the best way and I prefer to use Georg Kaindl 's library http://gkaindl.com/software/arduino-ethernet .
I think it's strange to have included in the official arduino ide the poorest library beetwen Terrell and Kaindl. What do you think about? May be I am wrong and leases are well managed also by Terrell's library?
Thanks
« Last Edit: October 18, 2012, 03:30:23 am by Massimo Banzi » Logged

italy
Offline Offline
Full Member
***
Karma: 3
Posts: 223
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

More info and a kind of solution are available at these pages:

http://code.google.com/p/arduino/issues/detail?id=716

https://github.com/arduino/Arduino/pull/54
Logged

Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino, just love it
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ignore the pull request, I closed it just now.
The issue is still valid though, and updated yet again, with tests and all.
Logged

italy
Offline Offline
Full Member
***
Karma: 3
Posts: 223
Muuuuu
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The problem has been resolved with the IDE 1.0.1 now the only thing necessary is to call Ethernet.mantain().
Look at http://arduino.cc/en/Reference/EthernetMaintain for more info.
Logged

Pages: [1]   Go Up
Jump to: