I have been working on a sensor node that monitors power consumption, and some other environmental characteristics. I have some simple code that seems to work well, for a while. It then freezes up, and I am not exactly sure why.
I have research this issue around this forum, as well as on the internet and come up with a few possible scenarios.
1. WizNet chip is having issues > could connect a reset pin
2. My code is crap (very likely)
3. Arduino itself is freezing up (probably due to 2)
I am not exactly sure where to procede, but I have a few questions for any knowledgeable person:
Is it safe to call Ethernet.begin() repeatedly? If so, what condition should cause me to call it? Should there be a timeout first?
I am using the EthernetDHCP library (
http://gkaindl.com/software/arduino-ethernet/dhcp), so I call EthernetDHCP.maintain() in my loop
Will that maintain the WizNet, as well as try to give me a nice IP address when my lease expires?
Also, I am trying to user yaler (yaler.org), to enable easy firewall penetration.
If anyone has experience with it, let me know. I am also uncertain about implementing it reliably.
Isaac