Has anyone used the INT signal (digital pin 2) of the w5100 shield to signal the arduino that a connection might be ready? I'm wondering if I can put the thing to sleep, and have an incoming connection wake the thing up.
Currently, I have :
void wakeMeUp() {
awakened_by_ethernet++;
}
And then in the loop :
attachInterrupt(0,wakeMeUp,CHANGE);
delay(100);
set_sleep_mode(SLEEP_MODE_IDLE);
// set_sleep_mode(SLEEP_MODE_PWR_DOWN);
sleep_enable();
sleep_mode();
sleep_disable();
detachInterrupt(0);
Serial.print("interrupted_by_ethernet = ");
Serial.println(awakened_by_ethernet);
This is just to see if I can get this piece to work. I have another interrupt already working on incoming digital pins, but I'd like to also wake up based on incoming network connections to probe the passive sensors, too.
I have soldered the INT connection together on the w5100 already, but I get no interrupt. I've also tried with attachInterrupt(2,...);
Thanks,
Joe