ESP8266 D1 Mini - Cloud login port

Thanks Dmitriy.

Guess I’ll have to wait until I return home (to Melbourne) this weekend as I’ve a fast net connection (fibre-to-the-home).

I can’t test at my client’s site as they use WPA2 Enterprise (something the D1 mini doesn’t support).

I’ll update all with my weekend test to see if ms network latency was the issue.

1 Like

Ok, back in Melbourne. Retested using my fast fibre-to-the-home internet connection. Connecting via IP didn’t work but via DNS name resolution did.

So here’s the output using blynk-cloud.com IP address:

void setup()
{
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass, "45.55.96.14"); // blynk-cloud.com = 45.55.96.14
}
[18615] Connecting to Pu5tuli0
[55962] Connected to WiFi
[55962] IP: 192.168.1.118
[55962] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.5.3 on Arduino

  Give Blynk a Github star! => https://github.com/blynkkk/blynk-library

[55975] Connecting to 45.55.96.14:80
[60976] Connecting to 45.55.96.14:80
[65977] Connecting to 45.55.96.14:80

And with this code variation (DNS resolution):

void setup()
{
  Serial.begin(115200);
  Blynk.begin(auth, ssid, pass);
}

the output looked like this:

[18591] Connecting to Pu5tuli0
[19093] Connected to WiFi
[19094] IP: 192.168.1.118
[19094] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.5.3 on Arduino

  Give Blynk a Github star! => https://github.com/blynkkk/blynk-library

[19107] Connecting to blynk-cloud.com:80
[19370] <[02|00|01|00] 739fa6f206d84124ac80c89c19773d9b
[19612] >[00|00|01|00|C8]
[19613] Ready (ping: 242ms).
[19613] Free RAM: 44000
[19613] >[14|00|01|00|08]
[19613] >pm[00]2[00]out
[19680] <[11|00|02|00]Hver[00]0.5.3[00]h-beat[00]10[00]buff-in[00]1024[00]dev[00]Arduino[00]build[00]Jun 24 2018 15:04:08[00]
[19921] >[00|00|02|00|C8]
[29681] <[06|00|03|00|00]
[29922] >[00|00|03|00|C8]
[39682] <[06|00|04|00|00]
[39951] >[00|00|04|00|C8]

This ping time to blynk-cloud.com (45.55.96.14) was

Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\Users\mread> ping blynk-cloud.com

Pinging blynk-cloud.com [45.55.96.146] with 32 bytes of data:
Reply from 45.55.96.146: bytes=32 time=241ms TTL=49
Reply from 45.55.96.146: bytes=32 time=241ms TTL=49
Reply from 45.55.96.146: bytes=32 time=240ms TTL=49
Reply from 45.55.96.146: bytes=32 time=241ms TTL=49

Ping statistics for 45.55.96.146:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 240ms, Maximum = 241ms, Average = 240ms
PS C:\Users\mread>

I’m about to jump on a plane and head back to Canberra. So will check this forum in around 5-6 hrs and re-test from mobile hotspot.

Cheers,
Mark

You’re posting snippets of code that make it very difficult to see what values you’re assigning to variables, or if there are other things that may be tripping you up.
However, from what you’ve posted it seems that there’s a mismatch between the IP address that’s returned when you ping blynk-cloud.com and the one that you’ve specified in one of your code examples:

Pete.

Thanks Pete. Oops, typo-slip-up. While domain name vs IP address isn’t the objective of the test (getting my device to log in to blynk cloud service with the standard ‘getting started’ script is, so there’s no special vars or anything else tripping me up - refer to my previous posts), I’ll correct the IP address and re-test from my mobile phone hot-spot. Back in a sec …

Ok, re-tested (both IP and DNS name resolution). Clearly the latency to blynk’s server from my 4G mobile hotspot is too great. So I’m fat out-of-luck testing Blynk while I’m away from home and my fast connection / lower network latency.