Hi All,
I using the spark core and am having trouble with WiFi.listening()
. Here’s what I’m doing:
If the user pulls a pin high (via a button) during the setup()
function, then the program calls WiFi.listen()
. This works fine and I can see from the spark’s led that the board is in listening mode. However, I’d like to indicate this on an LED strip so I have code like this:
WiFi.listen();
while(WiFi.listening()) {
led_strip_code();
}
Spark.connect();
My program seems to skip the led_strip_code()
and blocks at the Spark.connect()
until new credentials are given. Anyone have ideas as to why I can’t run the led_strip_code()
? BTW, I’m in SEMI_AUTOMATIC mode.
thanks in advance
-Matt