Variable Registration Delay - Doc Update Request

When I took too long to hit a key (or simply let 30s elapse), Particle.variable() failed to do its thing: apparently registration has to happen fairly quickly (as discussed in this thread).

void setup(){

  Serial.begin(9600);
  while (!Serial.available() && millis() < 30000) {
    Serial.println("Press any key to start.");
    Particle.process();
    delay(1000);
  }
  Particle.variable("humidity",humidity);
  Particle.variable("temperature",temperature);
}

So, could someone please make a brief note in the Particle.variable() reference documentation to that effect? I did not see that mentioned, and it seems pretty important …

Good idea. Issue created:

1 Like

Done!

That was an awesomely fast turn-around, thank you for doing this!