Spark.wake() during Spark.sleep()?

Understood, but as of next week this will be very possible without an explicit interrupt awakened sleep mode.

Here’s the spec:

For example:

System.mode(SEMI_AUTOMATIC);

int button = D0;

void setup() {
  attachInterrupt(button, sendSignal, CHANGE);
}

void sendSignal() {
  Spark.connect();
  Spark.publish("button");
  Network.disconnect();
}

There you go, interrupt driven wi-fi! Not saying that we won’t do a true interrupt-driven sleep mode, but at least there’s a short-term fix.