How long should Blynk.connect take?

i am doing this to start my battery powered ESP8266 node:

    WIFIStart = millis();

    WiFi.mode(WIFI_STA);
    WiFi.begin(ssid, pass);
    WiFi.config(ip, gateway, subnet); 
    WiFi.setOutputPower(0); // this is from conkerkh sets wifi to lowest power?
    Blynk.config(authBlynk, server, port);

    WIFIRunTime = millis() - WIFIStart;

    BLYNKStart = millis();

    Blynk.connect();

    BLYNKRunTime = millis() - BLYNKStart;

and i get 3 milliseconds for the WIFIRunTime and 5000 milliseconds for the BLYNKRunTime

is that 5 seconds for Blynk.connect(); about right?

oops, forgot to re-hack the library:

depending if you are using local server or not

1 Like